@@ -1,9 +1,9 @@
|
||||
--- a/net/minecraft/server/PathfinderGoalBreakDoor.java
|
||||
+++ b/net/minecraft/server/PathfinderGoalBreakDoor.java
|
||||
@@ -63,6 +63,12 @@
|
||||
@@ -44,6 +44,12 @@
|
||||
}
|
||||
|
||||
if (this.g == 240 && this.a.world.getDifficulty() == EnumDifficulty.HARD) {
|
||||
if (this.d == 240 && this.a.world.getDifficulty() == EnumDifficulty.HARD) {
|
||||
+ // CraftBukkit start
|
||||
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityBreakDoorEvent(this.a, this.b.getX(), this.b.getY(), this.b.getZ()).isCancelled()) {
|
||||
+ this.c();
|
||||
@@ -12,4 +12,4 @@
|
||||
+ // CraftBukkit end
|
||||
this.a.world.setAir(this.b);
|
||||
this.a.world.triggerEffect(1021, this.b, 0);
|
||||
this.a.world.triggerEffect(2001, this.b, Block.getId(this.c));
|
||||
this.a.world.triggerEffect(2001, this.b, Block.getCombinedId(this.a.world.getType(this.b)));
|
||||
|
||||
Reference in New Issue
Block a user