check for IFluidBlock (in addition to Material.liquid) when

determining render height so that non-liquids (gases) render correctly
This commit is contained in:
Michael Lawrence committed 2014-09-08 05:51:34 -07:00
1 parent 69700d2227
commit 71cb9dfe52
1 file changed
+2 -1
@@ -57,7 +57,8 @@ public class RenderBlockFluid implements ISimpleBlockRenderingHandler
{
if (world.getBlock(x, y, z) == block)
{
if (world.getBlock(x, y - block.densityDir, z).getMaterial().isLiquid())
Block verticalOrigin = world.getBlock(x, y - block.densityDir, z);
if (verticalOrigin.getMaterial().isLiquid() || verticalOrigin instanceof IFluidBlock)
{
return 1;
}