SPIGOT-1401: Issues placing blocks adjacent to eachother
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -167,7 +167,7 @@
|
|||||||
+ BlockPosition newblockposition = new BlockPosition(x, y, z);
|
+ BlockPosition newblockposition = new BlockPosition(x, y, z);
|
||||||
+ IBlockData block = world.getType(newblockposition);
|
+ 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);
|
+ block.getBlock().onPlace(world, newblockposition, block);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
|||||||
Reference in New Issue
Block a user