mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 17:28:52 -04:00
Merge pull request #2060 from joserobjr/patch-1
Check if the world is remote before killing the drone
This commit is contained in:
commit
fc56f31116
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user