Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Qzimyion committed Nov 8, 2023
1 parent c4d29fc commit fd64c82
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public class ShojiBlocks extends Block implements Waterloggable {
public static final EnumProperty<ShojiShapes> SHOJI_SHAPE = ModBlockProperties.SHOJI_SHAPE;

//General Shape
protected static final VoxelShape SHOJI_WALL_NORTH_SOUTH = Block.createCuboidShape(0, 0, 7, 16, 16, 9);
protected static final VoxelShape SHOJI_WALL_NORTH = Block.createCuboidShape(0, 0, 7, 16, 16, 9);
protected static final VoxelShape SHOJI_WALL_SOUTH = Block.createCuboidShape(0, 0, 7, 16, 16, 9);
protected static final VoxelShape SHOJI_WALL_EAST_WEST = Block.createCuboidShape(7, 0, 0, 9, 16, 16);

public ShojiBlocks(Settings settings) {
Expand All @@ -46,7 +47,8 @@ public BlockRenderType getRenderType(BlockState state)
@Override
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext ctx){
return switch (state.get(FACING)){
default -> SHOJI_WALL_NORTH_SOUTH;
default -> SHOJI_WALL_NORTH;
case SOUTH -> SHOJI_WALL_SOUTH;
case EAST, WEST -> SHOJI_WALL_EAST_WEST;
};
}
Expand Down

0 comments on commit fd64c82

Please sign in to comment.