Skip to content

Commit

Permalink
Fix inner stairs + slab bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Feb 5, 2025
1 parent ffdcdc0 commit c8324aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/main/java/net/wurstclient/glass/GlassStairsBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ private boolean isInvisibleToGlassSlab(BlockState state,
return true;

// front
if(direction == facing.getOpposite())
if(direction == facing.getOpposite() && shape != StairShape.INNER_LEFT
&& shape != StairShape.INNER_RIGHT)
{
if(typeFrom == SlabType.BOTTOM && half == BlockHalf.BOTTOM)
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ private boolean isInvisibleToGlassSlab(BlockState state,
return true;

// front
if(direction == facing.getOpposite())
if(direction == facing.getOpposite() && shape != StairShape.INNER_LEFT
&& shape != StairShape.INNER_RIGHT)
{
if(typeFrom == SlabType.BOTTOM && half == BlockHalf.BOTTOM)
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ private boolean isInvisibleToGlassSlab(BlockState state,
return true;

// front
if(direction == facing.getOpposite())
if(direction == facing.getOpposite() && shape != StairShape.INNER_LEFT
&& shape != StairShape.INNER_RIGHT)
{
if(typeFrom == SlabType.BOTTOM && half == BlockHalf.BOTTOM)
return true;
Expand Down

0 comments on commit c8324aa

Please sign in to comment.