mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-08 14:50:51 -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)
|
super.hitByEntity(entity)
|
||||||
}
|
}
|
||||||
|
|
||||||
override def interactFirst(player: EntityPlayer) = {
|
override def interactFirst(player: EntityPlayer): Boolean = {
|
||||||
|
if (isDead) return false
|
||||||
if (player.isSneaking) {
|
if (player.isSneaking) {
|
||||||
if (Wrench.isWrench(player.getHeldItem)) {
|
if (Wrench.isWrench(player.getHeldItem)) {
|
||||||
if(!world.isRemote) {
|
if(!world.isRemote) {
|
||||||
@ -538,6 +539,7 @@ class Drone(val world: World) extends Entity(world) with MachineHost with intern
|
|||||||
}
|
}
|
||||||
|
|
||||||
override def kill(): Unit = {
|
override def kill(): Unit = {
|
||||||
|
if (isDead) return
|
||||||
super.kill()
|
super.kill()
|
||||||
if (!world.isRemote) {
|
if (!world.isRemote) {
|
||||||
val stack = api.Items.get(Constants.ItemName.Drone).createItemStack(1)
|
val stack = api.Items.get(Constants.ItemName.Drone).createItemStack(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user