Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.7.10

This commit is contained in:
Florian Nücke 2017-02-14 22:36:14 +01:00
commit 0654c76b82

View File

@ -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) {
@ -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)