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 2014-09-08 05:42:53 -07:00
parent 69700d2227
commit 71cb9dfe52

View file

@ -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;
}