mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 01:39:36 -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,8 +467,10 @@ class Drone(val world: World) extends Entity(world) with MachineHost with intern
|
|||||||
override def interactFirst(player: EntityPlayer) = {
|
override def interactFirst(player: EntityPlayer) = {
|
||||||
if (player.isSneaking) {
|
if (player.isSneaking) {
|
||||||
if (Wrench.isWrench(player.getHeldItem)) {
|
if (Wrench.isWrench(player.getHeldItem)) {
|
||||||
|
if(!world.isRemote) {
|
||||||
kill()
|
kill()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (!world.isRemote && !machine.isRunning) {
|
else if (!world.isRemote && !machine.isRunning) {
|
||||||
preparePowerUp()
|
preparePowerUp()
|
||||||
start()
|
start()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user