diff --git a/nms-patches/PathfinderGoalDoorInteract.patch b/nms-patches/PathfinderGoalDoorInteract.patch index 2b2ba9dde6..61ce33240f 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;