Patrone.cc-src-skid-me/toothless/server/nms-patches/PathfinderGoalBreakDoor.patch
disclearing 4f52c57848 MEME ME :heart
FUCK PUTTYEXE
2019-06-19 04:50:21 +01:00

16 lines
697 B
Diff

--- a/net/minecraft/server/PathfinderGoalBreakDoor.java
+++ b/net/minecraft/server/PathfinderGoalBreakDoor.java
@@ -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));