Fixed torches being placed on top of banisters

This commit is contained in:
Sollace 2019-02-10 14:37:46 +02:00
parent 9a3c8bc672
commit 675cea57b8

View file

@ -96,6 +96,17 @@ public class BlockCloudBanister extends BlockCloudFence {
}
}
@Override
public boolean isTopSolid(IBlockState state) {
return false;
}
@Override
public boolean canPlaceTorchOnTop(IBlockState state, IBlockAccess world, BlockPos pos) {
return false;
}
@Override
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) {
state = getActualState(state, source, pos);
return BOUNDING_BOXES[getBoundingBoxIdx(state)];