Skip to content

Commit

Permalink
Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComput…
Browse files Browse the repository at this point in the history
…ers into master-MC1.7.10
  • Loading branch information
fnuecke committed Feb 14, 2017
2 parents df548f8 + eaa6582 commit 0654c76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/scala/li/cil/oc/common/entity/Drone.scala
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@ class Drone(val world: World) extends Entity(world) with MachineHost with intern
super.hitByEntity(entity)
}

override def interactFirst(player: EntityPlayer) = {
override def interactFirst(player: EntityPlayer): Boolean = {
if (isDead) return false
if (player.isSneaking) {
if (Wrench.isWrench(player.getHeldItem)) {
if(!world.isRemote) {
Expand Down Expand Up @@ -536,6 +537,7 @@ class Drone(val world: World) extends Entity(world) with MachineHost with intern
}

override def kill(): Unit = {
if (isDead) return
super.kill()
if (!world.isRemote) {
val stack = api.Items.get(Constants.ItemName.Drone).createItemStack(1)
Expand Down

0 comments on commit 0654c76

Please sign in to comment.