This commit is contained in:
Florian Nücke 2016-07-13 18:53:36 +02:00
parent 400d3981e1
commit 2e122599af

View File

@ -56,12 +56,14 @@ 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)
if (world.isRemote) {
runSound.foreach(sound => runSound.foreach(sound =>
if (_isRunning) Sound.startLoop(this, sound, 0.5f, 50 + world.rand.nextInt(50)) if (_isRunning) Sound.startLoop(this, sound, 0.5f, 50 + world.rand.nextInt(50))
else Sound.stopLoop(this) else Sound.stopLoop(this)
) )
} }
} }
}
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
def setUsers(list: Iterable[String]) { def setUsers(list: Iterable[String]) {