Skip to content

Commit 0f01f6d

Browse files
committed
Fixed (harmless) occasional warnings in sound system when computer errored when powering on. Closes #1558.
1 parent 82cc648 commit 0f01f6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/li/cil/oc/client/Sound.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ object Sound {
172172
}
173173
}
174174

175-
private class StopCommand(tileEntity: TileEntity) extends Command(0, tileEntity) {
175+
private class StopCommand(tileEntity: TileEntity) extends Command(System.currentTimeMillis() + 1, tileEntity) {
176176
override def apply() {
177177
sources.synchronized {
178178
sources.remove(tileEntity) match {
@@ -189,7 +189,7 @@ object Sound {
189189
}
190190
}
191191

192-
private class UpdatePositionCommand(tileEntity: TileEntity) extends Command(0, tileEntity) {
192+
private class UpdatePositionCommand(tileEntity: TileEntity) extends Command(System.currentTimeMillis(), tileEntity) {
193193
override def apply() {
194194
sources.synchronized {
195195
sources.get(tileEntity) match {

0 commit comments

Comments
 (0)