13
0
geforkt von Mirrors/Paper
Paper/paper-server/nms-patches/PathfinderGoalBreakDoor.patch
CraftBukkit/Spigot a8ddf37419 Remove patch headers
By: GunfighterJ <joseph.jenniges@gmail.com>
2014-11-28 16:54:14 -06:00

14 Zeilen
585 B
Diff

@@ -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));