Skip to content

Commit

Permalink
Adjust culling for liquids to ignore flowing water.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlgorithmX2 committed Mar 8, 2018
1 parent 0b3f673 commit 1cd4f9c
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -2,6 +2,7 @@

import mod.chiselsandbits.chiseledblock.BlockBitInfo;
import mod.chiselsandbits.helpers.ModUtil;
import net.minecraft.block.BlockLiquid;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Biomes;
import net.minecraft.init.Blocks;
Expand Down Expand Up @@ -49,6 +50,11 @@ public boolean isVisible(
return false;
}

if ( a.getBlock() instanceof BlockLiquid )
{
return true;
}

try
{
return a.shouldSideBeRendered( this, BlockPos.ORIGIN, EnumFacing.NORTH );
Expand Down

0 comments on commit 1cd4f9c

Please sign in to comment.