From 3006dee4c6cfa20e7a46c7a9e02ed5e29df42b9c Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 3 Aug 2018 09:59:22 +1000 Subject: Use CraftBlock.at helper --- nms-patches/PathfinderGoalDoorInteract.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nms-patches') 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; -- cgit v1.2.3