diff options
author | BlackHole <black-hole@live.com> | 2016-03-09 19:53:01 +0100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-10 07:49:44 +1100 |
commit | 68b72776a9193885da46c78da560d7b6bafeba7c (patch) | |
tree | d63997163a92bb397aa60e6963caaf3efe59f3af | |
parent | a602cb2e8ce8891ebdc9cab2e39fb0fce2e8cc76 (diff) | |
download | craftbukkit-68b72776a9193885da46c78da560d7b6bafeba7c.tar craftbukkit-68b72776a9193885da46c78da560d7b6bafeba7c.tar.gz craftbukkit-68b72776a9193885da46c78da560d7b6bafeba7c.tar.lz craftbukkit-68b72776a9193885da46c78da560d7b6bafeba7c.tar.xz craftbukkit-68b72776a9193885da46c78da560d7b6bafeba7c.zip |
Missing diff effecting frost walker ignoring entities
-rw-r--r-- | nms-patches/World.patch | 2 |
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); + |