summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/PathfinderGoalDoorInteract.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/PathfinderGoalDoorInteract.patch b/nms-patches/PathfinderGoalDoorInteract.patch
index 2b2ba9dd..61ce3324 100644
--- a/nms-patches/PathfinderGoalDoorInteract.patch
+++ b/nms-patches/PathfinderGoalDoorInteract.patch
@@ -5,7 +5,7 @@
if (iblockdata.getBlock() instanceof BlockDoor) {
+ // CraftBukkit start - entities opening doors
-+ org.bukkit.event.entity.EntityInteractEvent event = new org.bukkit.event.entity.EntityInteractEvent(this.a.getBukkitEntity(), this.a.world.getWorld().getBlockAt(this.b.getX(), this.b.getY(), this.b.getZ()));
++ org.bukkit.event.entity.EntityInteractEvent event = new org.bukkit.event.entity.EntityInteractEvent(this.a.getBukkitEntity(), org.bukkit.craftbukkit.block.CraftBlock.at(this.a.world, this.b));
+ this.a.world.getServer().getPluginManager().callEvent(event);
+ if (event.isCancelled()) {
+ return;