Skip to content

Commit

Permalink
Fix fluid flowing overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Jan 13, 2024
1 parent ce22790 commit 849fe18
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,7 @@ public boolean render(IBlockAccess world, IBlockState fluidState, BlockPos pos,
BlockPos adjPos = this.scratchPos.setPos(adjX, adjY, adjZ);
IBlockState adjBlock = world.getBlockState(adjPos);

if (WorldUtil.shouldDisplayFluidOverlay(adjBlock)) {
// should ignore invisible blocks, barriers, light blocks
// use static water when adjacent block is ice, glass, stained glass, tinted glass
if (adjBlock.getBlockFaceShape(world, adjPos, dir.getOpposite()) == net.minecraft.block.state.BlockFaceShape.SOLID) {
sprite = oSprite;
}
}
Expand Down

0 comments on commit 849fe18

Please sign in to comment.