From 2e122599af8fb8638a27ca8886dc011dc97fde0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Wed, 13 Jul 2016 18:53:36 +0200 Subject: [PATCH] Should fix #1941. --- .../li/cil/oc/common/tileentity/traits/Computer.scala | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/scala/li/cil/oc/common/tileentity/traits/Computer.scala b/src/main/scala/li/cil/oc/common/tileentity/traits/Computer.scala index 4eea44b36..1f09602f4 100644 --- a/src/main/scala/li/cil/oc/common/tileentity/traits/Computer.scala +++ b/src/main/scala/li/cil/oc/common/tileentity/traits/Computer.scala @@ -56,10 +56,12 @@ trait Computer extends Environment with ComponentInventory with Rotatable with B } if (world != null) { world.markBlockForUpdate(x, y, z) - runSound.foreach(sound => - if (_isRunning) Sound.startLoop(this, sound, 0.5f, 50 + world.rand.nextInt(50)) - else Sound.stopLoop(this) - ) + if (world.isRemote) { + runSound.foreach(sound => + if (_isRunning) Sound.startLoop(this, sound, 0.5f, 50 + world.rand.nextInt(50)) + else Sound.stopLoop(this) + ) + } } }