You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
976 B
17 lines
976 B
--- ../src-base/minecraft/net/minecraft/entity/ai/EntityAIBreakDoor.java |
|
+++ ../src-work/minecraft/net/minecraft/entity/ai/EntityAIBreakDoor.java |
|
@@ -58,6 +58,14 @@ |
|
|
|
if (this.breakingTime == 240 && this.theEntity.worldObj.difficultySetting == EnumDifficulty.HARD) |
|
{ |
|
+ // CraftBukkit start |
|
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityBreakDoorEvent(this.theEntity, this.entityPosX, this.entityPosY, this.entityPosZ).isCancelled()) |
|
+ { |
|
+ this.updateTask(); |
|
+ return; |
|
+ } |
|
+ |
|
+ // CraftBukkit end |
|
this.theEntity.worldObj.setBlockToAir(this.entityPosX, this.entityPosY, this.entityPosZ); |
|
this.theEntity.worldObj.playAuxSFX(1012, this.entityPosX, this.entityPosY, this.entityPosZ, 0); |
|
this.theEntity.worldObj.playAuxSFX(2001, this.entityPosX, this.entityPosY, this.entityPosZ, Block.getIdFromBlock(this.field_151504_e));
|
|
|