From 715095434cde8ab71af524d2f06b99cd58806165 Mon Sep 17 00:00:00 2001 From: Meredith Espinosa Date: Wed, 10 Jul 2019 15:44:34 -0700 Subject: [PATCH] better collision check --- .../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 acffc6d..1e9d84a 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 (placementState.getOutlineShape(world, pos) == VoxelShapes.fullCube() && !(block instanceof BlockEntityProvider)) { + if (Block.isShapeFullCube(placementState.getCollisionShape(world, pos)) && !(block instanceof BlockEntityProvider)) { if (be.getRenderedState().getBlock() == Blocks.AIR) { be.setRenderedState(placementState); if (!player.abilities.creativeMode) stack.decrement(1);