Fixed (harmless) occasional warnings in sound system when computer errored when powering on. Closes #1558.

This commit is contained in:
Florian Nücke 2016-01-31 16:58:52 +01:00
parent 6022834bb5
commit 9a1a8daefb

View File

@ -172,7 +172,7 @@ object Sound {
} }
} }
private class StopCommand(tileEntity: TileEntity) extends Command(0, tileEntity) { private class StopCommand(tileEntity: TileEntity) extends Command(System.currentTimeMillis() + 1, tileEntity) {
override def apply() { override def apply() {
sources.synchronized { sources.synchronized {
sources.remove(tileEntity) match { sources.remove(tileEntity) match {
@ -189,7 +189,7 @@ object Sound {
} }
} }
private class UpdatePositionCommand(tileEntity: TileEntity) extends Command(0, tileEntity) { private class UpdatePositionCommand(tileEntity: TileEntity) extends Command(System.currentTimeMillis(), tileEntity) {
override def apply() { override def apply() {
sources.synchronized { sources.synchronized {
sources.get(tileEntity) match { sources.get(tileEntity) match {