Skip to content

Commit

Permalink
Fix stair bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Jan 28, 2025
1 parent a40f21c commit da93594
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/main/java/net/wurstclient/glass/GlassStairsBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ private boolean isInvisibleToGlassStairs(BlockState state,
&& shapeFrom == StairShape.INNER_RIGHT)
return true;

if(facingFrom == facing && shapeFrom != StairShape.OUTER_LEFT)
if(facingFrom == facing && shape != StairShape.INNER_LEFT
&& shapeFrom != StairShape.OUTER_LEFT)
return true;

if(facingFrom == facing.rotateYClockwise()
Expand All @@ -289,7 +290,8 @@ private boolean isInvisibleToGlassStairs(BlockState state,
&& shapeFrom == StairShape.INNER_LEFT)
return true;

if(facingFrom == facing && shapeFrom != StairShape.OUTER_RIGHT)
if(facingFrom == facing && shape != StairShape.INNER_RIGHT
&& shapeFrom != StairShape.OUTER_RIGHT)
return true;

if(facingFrom == facing.rotateYCounterclockwise()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ private boolean isInvisibleToGlassStairs(BlockState state,
&& shapeFrom == StairShape.INNER_RIGHT)
return true;

if(facingFrom == facing && shapeFrom != StairShape.OUTER_LEFT)
if(facingFrom == facing && shape != StairShape.INNER_LEFT
&& shapeFrom != StairShape.OUTER_LEFT)
return true;

if(facingFrom == facing.rotateYClockwise()
Expand All @@ -294,7 +295,8 @@ private boolean isInvisibleToGlassStairs(BlockState state,
&& shapeFrom == StairShape.INNER_LEFT)
return true;

if(facingFrom == facing && shapeFrom != StairShape.OUTER_RIGHT)
if(facingFrom == facing && shape != StairShape.INNER_RIGHT
&& shapeFrom != StairShape.OUTER_RIGHT)
return true;

if(facingFrom == facing.rotateYCounterclockwise()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ private boolean isInvisibleToGlassStairs(BlockState state,
&& shapeFrom == StairShape.INNER_RIGHT)
return true;

if(facingFrom == facing && shapeFrom != StairShape.OUTER_LEFT)
if(facingFrom == facing && shape != StairShape.INNER_LEFT
&& shapeFrom != StairShape.OUTER_LEFT)
return true;

if(facingFrom == facing.rotateYClockwise()
Expand All @@ -289,7 +290,8 @@ private boolean isInvisibleToGlassStairs(BlockState state,
&& shapeFrom == StairShape.INNER_LEFT)
return true;

if(facingFrom == facing && shapeFrom != StairShape.OUTER_RIGHT)
if(facingFrom == facing && shape != StairShape.INNER_RIGHT
&& shapeFrom != StairShape.OUTER_RIGHT)
return true;

if(facingFrom == facing.rotateYCounterclockwise()
Expand Down

0 comments on commit da93594

Please sign in to comment.