mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 09:46:53 -04:00
All the derpery today.
This commit is contained in:
parent
fdac72e77f
commit
c17eab55ea
@ -52,11 +52,13 @@ 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
|
||||||
world.markBlockForUpdate(x, y, z)
|
if (world != null) {
|
||||||
runSound.foreach(sound =>
|
world.markBlockForUpdate(x, y, z)
|
||||||
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)
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user