summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-08-03 09:59:22 +1000
committermd_5 <git@md-5.net>2018-08-03 09:59:22 +1000
commit3006dee4c6cfa20e7a46c7a9e02ed5e29df42b9c (patch)
tree7edd0c544150cd3c3aedb48e5bdba0ee5ac3d894 /nms-patches
parent7dc47385287c1f8e946d1b954a0a54dc84361bd9 (diff)
downloadcraftbukkit-3006dee4c6cfa20e7a46c7a9e02ed5e29df42b9c.tar
craftbukkit-3006dee4c6cfa20e7a46c7a9e02ed5e29df42b9c.tar.gz
craftbukkit-3006dee4c6cfa20e7a46c7a9e02ed5e29df42b9c.tar.lz
craftbukkit-3006dee4c6cfa20e7a46c7a9e02ed5e29df42b9c.tar.xz
craftbukkit-3006dee4c6cfa20e7a46c7a9e02ed5e29df42b9c.zip
Use CraftBlock.at helper
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;