[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.
This commit is contained in:
t00thpick1 2014-01-07 00:21:31 -05:00 committed by feildmaster
parent 771c41c691
commit 030cf5a6d1

View File

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