fix yet another bug with applying slopes

This commit is contained in:
Meredith Espinosa 2019-07-14 17:51:47 -07:00
parent 4ec0a07e7d
commit 964a47e931
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ if(rootProject.file('private.gradle').exists()) { //Publishing details
archivesBaseName = "templates"
group = "io.github.cottonmc"
version = "1.0.5+1.14.3"
version = "1.0.6+1.14.3"
minecraft {
refmapName = 'mixins.templates.refmap.json'

View File

@ -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(state.getCollisionShape(world, pos)) && !(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);