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