mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-03 19:17:27 -04:00
Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.8.9
This commit is contained in:
commit
b035cf91b4
Binary file not shown.
Binary file not shown.
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user