Fix DH lighting failing for water

This commit is contained in:
James Seibel
2023-12-01 07:50:14 -06:00
parent 4955d22649
commit 4cd10a82fd
@@ -174,7 +174,13 @@ public class BlockStateWrapper implements IBlockStateWrapper
public int getOpacity()
{
// this method isn't perfect, but works well enough for our use case
if (this.isAir() || !this.blockState.canOcclude())
if (this.isLiquid() && !this.blockState.canOcclude())
{
// probably not a waterlogged block (which should block light entirely)
return FULLY_TRANSPARENT + 1;
}
else if (this.isAir() || !this.blockState.canOcclude())
{
// completely transparent
return FULLY_TRANSPARENT;