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

This commit is contained in:
Florian Nücke 2017-02-14 22:36:54 +01:00
commit b035cf91b4
3 changed files with 3 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -466,7 +466,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) {
@ -538,6 +539,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)