Merge pull request #1395 from lawremi/rendergasfix

Fix rendering height of non-liquid fluids
This commit is contained in:
LexManos committed 2014-09-09 13:28:54 -07:00
commit e2ae05ccb6
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;
}