From 3fef940041fd528125eec8c57add3b57dbc75a98 Mon Sep 17 00:00:00 2001 From: Meredith Espinosa Date: Thu, 11 Jul 2019 00:38:22 -0700 Subject: [PATCH] be more discerning with what can go in a template block --- .../java/io/github/cottonmc/templates/block/TemplateBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/cottonmc/templates/block/TemplateBlock.java b/src/main/java/io/github/cottonmc/templates/block/TemplateBlock.java index 1e9d84a..c207f26 100644 --- a/src/main/java/io/github/cottonmc/templates/block/TemplateBlock.java +++ b/src/main/java/io/github/cottonmc/templates/block/TemplateBlock.java @@ -42,7 +42,7 @@ public abstract class TemplateBlock extends Block implements BlockEntityProvider } ItemPlacementContext ctx = new ItemPlacementContext(new ItemUsageContext(player, hand, hit)); BlockState placementState = block.getPlacementState(ctx); - if (Block.isShapeFullCube(placementState.getCollisionShape(world, pos)) && !(block instanceof BlockEntityProvider)) { + if (state.isSimpleFullBlock(world, pos) && !(block instanceof BlockEntityProvider)) { if (be.getRenderedState().getBlock() == Blocks.AIR) { be.setRenderedState(placementState); if (!player.abilities.creativeMode) stack.decrement(1);