From 7ea20602b7d4a0c729e8f4afc6fe57f389e6955a Mon Sep 17 00:00:00 2001 From: joserobjr Date: Sat, 17 Sep 2016 05:04:46 -0300 Subject: [PATCH] Check if the world is remote before killing the drone Drones were getting invisible when a player attempts to drop it (wrench + sneak + right click) and a server mod cancels the interaction. --- src/main/scala/li/cil/oc/common/entity/Drone.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/scala/li/cil/oc/common/entity/Drone.scala b/src/main/scala/li/cil/oc/common/entity/Drone.scala index 080899deb..a1873a020 100644 --- a/src/main/scala/li/cil/oc/common/entity/Drone.scala +++ b/src/main/scala/li/cil/oc/common/entity/Drone.scala @@ -467,7 +467,9 @@ class Drone(val world: World) extends Entity(world) with MachineHost with intern override def interactFirst(player: EntityPlayer) = { if (player.isSneaking) { if (Wrench.isWrench(player.getHeldItem)) { - kill() + if(!world.isRemote) { + kill() + } } else if (!world.isRemote && !machine.isRunning) { preparePowerUp()