mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 21:19:00 +01:00
90ac03522a
This reverts commit d6e3dff7d8
.
16 lines
807 B
Diff
16 lines
807 B
Diff
--- ../work/decompile-8eb82bde//net/minecraft/server/PathfinderGoalBreakDoor.java 2014-11-28 17:43:43.277707431 +0000
|
|
+++ src/main/java/net/minecraft/server/PathfinderGoalBreakDoor.java 2014-11-28 17:38:21.000000000 +0000
|
|
@@ -63,6 +63,12 @@
|
|
}
|
|
|
|
if (this.g == 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();
|
|
+ return;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
this.a.world.setAir(this.b);
|
|
this.a.world.triggerEffect(1012, this.b, 0);
|
|
this.a.world.triggerEffect(2001, this.b, Block.getId(this.c));
|