mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 10:51:55 -04:00
Fixed (harmless) occasional warnings in sound system when computer errored when powering on. Closes #1558.
This commit is contained in:
parent
6022834bb5
commit
9a1a8daefb
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user