Skip to content

Commit

Permalink
Fixing block skip rendering settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian-Wuest committed Sep 23, 2024
1 parent 1cb214f commit a2ac5c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/wuest/prefab/blocks/BlockGlassSlab.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockSt
@Environment(EnvType.CLIENT)
public boolean skipRendering(BlockState state, BlockState adjacentBlockState, Direction side) {
Block adjacentBlock = adjacentBlockState.getBlock();
boolean foundBlock = Utils.doesBlockStateHaveTag(adjacentBlockState, new ResourceLocation("c", "glass"));
boolean foundBlock = Utils.doesBlockStateHaveTag(adjacentBlockState, new ResourceLocation("c", "glass_blocks"));

/*
Hide this side under the following conditions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void tick(BlockState blockState, ServerLevel serverLevel, BlockPos blockP
@Override
@Environment(EnvType.CLIENT)
public boolean skipRendering(BlockState state, BlockState adjacentBlockState, Direction side) {
boolean foundBlock = Utils.doesBlockStateHaveTag(adjacentBlockState, new ResourceLocation("c", "glass"));
boolean foundBlock = Utils.doesBlockStateHaveTag(adjacentBlockState, new ResourceLocation("c", "glass_blocks"));
Block adjacentBlock = adjacentBlockState.getBlock();

return foundBlock || adjacentBlock == this
Expand Down

0 comments on commit a2ac5c5

Please sign in to comment.