summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authorBlackHole <black-hole@live.com>2016-03-09 19:53:01 +0100
committermd_5 <git@md-5.net>2016-03-10 07:49:44 +1100
commit68b72776a9193885da46c78da560d7b6bafeba7c (patch)
treed63997163a92bb397aa60e6963caaf3efe59f3af /nms-patches
parenta602cb2e8ce8891ebdc9cab2e39fb0fce2e8cc76 (diff)
downloadcraftbukkit-68b72776a9193885da46c78da560d7b6bafeba7c.tar
craftbukkit-68b72776a9193885da46c78da560d7b6bafeba7c.tar.gz
craftbukkit-68b72776a9193885da46c78da560d7b6bafeba7c.tar.lz
craftbukkit-68b72776a9193885da46c78da560d7b6bafeba7c.tar.xz
craftbukkit-68b72776a9193885da46c78da560d7b6bafeba7c.zip
Missing diff effecting frost walker ignoring entities
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/World.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/World.patch b/nms-patches/World.patch
index 1f3db7fe..d9d7ba1a 100644
--- a/nms-patches/World.patch
+++ b/nms-patches/World.patch
@@ -555,7 +555,7 @@
- return axisalignedbb != Block.k && !this.a(axisalignedbb.a(blockposition), entity) ? false : (iblockdata.getMaterial() == Material.ORIENTABLE && block == Blocks.ANVIL ? true : iblockdata.getMaterial().isReplaceable() && block.canPlace(this, blockposition, enumdirection, itemstack));
+ // CraftBukkit start - store default return
-+ boolean defaultReturn = axisalignedbb != null && !this.a(axisalignedbb, entity) ? false : (iblockdata.getMaterial() == Material.ORIENTABLE && block == Blocks.ANVIL ? true : iblockdata.getMaterial().isReplaceable() && block.canPlace(this, blockposition, enumdirection, itemstack));
++ boolean defaultReturn = axisalignedbb != Block.k && !this.a(axisalignedbb.a(blockposition), entity) ? false : (iblockdata.getMaterial() == Material.ORIENTABLE && block == Blocks.ANVIL ? true : iblockdata.getMaterial().isReplaceable() && block.canPlace(this, blockposition, enumdirection, itemstack));
+ BlockCanBuildEvent event = new BlockCanBuildEvent(this.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()), CraftMagicNumbers.getId(block), defaultReturn);
+ this.getServer().getPluginManager().callEvent(event);
+