summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authort00thpick1 <t00thpick1dirko@gmail.com>2014-01-07 00:21:31 -0500
committerfeildmaster <admin@feildmaster.com>2014-01-18 15:52:54 -0600
commit030cf5a6d163040d0d48ff8557b8cef6d3fe7b38 (patch)
tree875827a4030ef27603cc83c9aa3ff5e1d7fef692
parent771c41c691fe71af78039b747f565a2c8320b6a9 (diff)
downloadcraftbukkit-030cf5a6d163040d0d48ff8557b8cef6d3fe7b38.tar
craftbukkit-030cf5a6d163040d0d48ff8557b8cef6d3fe7b38.tar.gz
craftbukkit-030cf5a6d163040d0d48ff8557b8cef6d3fe7b38.tar.lz
craftbukkit-030cf5a6d163040d0d48ff8557b8cef6d3fe7b38.tar.xz
craftbukkit-030cf5a6d163040d0d48ff8557b8cef6d3fe7b38.zip
[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.
-rw-r--r--src/main/java/net/minecraft/server/PathfinderGoalBreakDoor.java2
1 files changed, 1 insertions, 1 deletions
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