summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-11-28 10:13:49 +1100
committermd_5 <git@md-5.net>2016-11-28 10:13:49 +1100
commit0a1e0455e2dea43657debc158a1b1a2282e5516d (patch)
tree0fb6e1e6bab03a15e4a56727ec833bc69f798d0c
parentd7cce99f018b016e8ffbb9606f5d9a958a4db24b (diff)
downloadcraftbukkit-0a1e0455e2dea43657debc158a1b1a2282e5516d.tar
craftbukkit-0a1e0455e2dea43657debc158a1b1a2282e5516d.tar.gz
craftbukkit-0a1e0455e2dea43657debc158a1b1a2282e5516d.tar.lz
craftbukkit-0a1e0455e2dea43657debc158a1b1a2282e5516d.tar.xz
craftbukkit-0a1e0455e2dea43657debc158a1b1a2282e5516d.zip
SPIGOT-1401: Issues placing blocks adjacent to eachother
-rw-r--r--nms-patches/ItemStack.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/ItemStack.patch b/nms-patches/ItemStack.patch
index 4af9c3f9..98cf9d84 100644
--- a/nms-patches/ItemStack.patch
+++ b/nms-patches/ItemStack.patch
@@ -167,7 +167,7 @@
+ BlockPosition newblockposition = new BlockPosition(x, y, z);
+ IBlockData block = world.getType(newblockposition);
+
-+ if (!(block instanceof BlockTileEntity)) { // Containers get placed automatically
++ if (!(block.getBlock() instanceof BlockTileEntity)) { // Containers get placed automatically
+ block.getBlock().onPlace(world, newblockposition, block);
+ }
+