All the derpery today.

This commit is contained in:
Florian Nücke 2015-02-20 01:33:12 +01:00
parent fdac72e77f
commit c17eab55ea

View File

@ -52,12 +52,14 @@ trait Computer extends Environment with ComponentInventory with Rotatable with B
def setRunning(value: Boolean): Unit = if (value != _isRunning) { def setRunning(value: Boolean): Unit = if (value != _isRunning) {
_isRunning = value _isRunning = value
if (world != null) {
world.markBlockForUpdate(x, y, z) world.markBlockForUpdate(x, y, z)
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]) {