From 030cf5a6d163040d0d48ff8557b8cef6d3fe7b38 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Tue, 7 Jan 2014 00:21:31 -0500 Subject: [Bleeding] Properly handle EntityBreakDoor event canceling. Fixes BUKKIT-5318 The method being called was renamed during the 1.4.2 update process but the function call was not replaced accordingly, leading to a missed diff from 314051580a0a8e4745d3a539f232b552916eb302. --- src/main/java/net/minecraft/server/PathfinderGoalBreakDoor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/net/minecraft') diff --git a/src/main/java/net/minecraft/server/PathfinderGoalBreakDoor.java b/src/main/java/net/minecraft/server/PathfinderGoalBreakDoor.java index 5390ef11..60be62b4 100644 --- a/src/main/java/net/minecraft/server/PathfinderGoalBreakDoor.java +++ b/src/main/java/net/minecraft/server/PathfinderGoalBreakDoor.java @@ -46,7 +46,7 @@ public class PathfinderGoalBreakDoor extends PathfinderGoalDoorInteract { if (this.i == 240 && this.a.world.difficulty == EnumDifficulty.HARD) { // CraftBukkit start if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityBreakDoorEvent(this.a, this.b, this.c, this.d).isCancelled()) { - this.e(); + this.c(); return; } // CraftBukkit end -- cgit v1.2.3