Skip to content

Commit 448bbdd

Browse files
authored
Hold my sides (#829)
1 parent 6085981 commit 448bbdd

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/main/java/com/ldtteam/structurize/blocks/schematic/BlockSubstitution.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ public static Properties defaultSubstitutionProperties()
3535
.sound(SoundType.WOOD)
3636
.instabreak() // must be before explosionResistance
3737
.explosionResistance(Blocks.OAK_PLANKS.getExplosionResistance())
38-
.noOcclusion();
38+
.noOcclusion()
39+
.forceSolidOff();
3940
}
4041

4142
@Override
@@ -57,4 +58,11 @@ public VoxelShape getCollisionShape(BlockState state, BlockGetter blockGetter, B
5758

5859
return super.getCollisionShape(state,blockGetter,blockPos,context);
5960
}
61+
62+
@Override
63+
public VoxelShape getBlockSupportShape(BlockState state, BlockGetter worldIn, BlockPos pos)
64+
{
65+
// Allow torches etc to be placed on the faces regardless of collision shape
66+
return Shapes.block();
67+
}
6068
}

0 commit comments

Comments
 (0)