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 c7621294d3
commit 969e6ebf94

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() {
sources.synchronized {
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() {
sources.synchronized {
sources.get(tileEntity) match {