mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 17:56:34 -04:00
Should fix #1941.
This commit is contained in:
parent
400d3981e1
commit
2e122599af
@ -56,10 +56,12 @@ trait Computer extends Environment with ComponentInventory with Rotatable with B
|
|||||||
}
|
}
|
||||||
if (world != null) {
|
if (world != null) {
|
||||||
world.markBlockForUpdate(x, y, z)
|
world.markBlockForUpdate(x, y, z)
|
||||||
runSound.foreach(sound =>
|
if (world.isRemote) {
|
||||||
if (_isRunning) Sound.startLoop(this, sound, 0.5f, 50 + world.rand.nextInt(50))
|
runSound.foreach(sound =>
|
||||||
else Sound.stopLoop(this)
|
if (_isRunning) Sound.startLoop(this, sound, 0.5f, 50 + world.rand.nextInt(50))
|
||||||
)
|
else Sound.stopLoop(this)
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user