Skip to content

Commit

Permalink
Bugfix: fluid-rendered would occlude water behing translucent blocks (#…
Browse files Browse the repository at this point in the history
…2468)

This bug was introduced in bc38d56
  • Loading branch information
MeeniMc committed May 5, 2024
1 parent aa49bea commit 0a8036b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private boolean isFluidOccluded(BlockAndTintGetter world, int x, int y, int z, D
if (blockState.getFluidState().getType().isSame(fluid)) {
return true;
}
return blockState.isFaceSturdy(world, adjPos, dir.getOpposite(), SupportType.FULL);
return blockState.canOcclude() && blockState.isFaceSturdy(world, adjPos, dir.getOpposite(), SupportType.FULL);
}

private boolean isSideExposed(BlockAndTintGetter world, int x, int y, int z, Direction dir, float height) {
Expand Down

0 comments on commit 0a8036b

Please sign in to comment.