Merge pull request #1395 from lawremi/rendergasfix

Fix rendering height of non-liquid fluids
This commit is contained in:
LexManos 2014-09-09 13:28:54 -07:00
commit e2ae05ccb6
1 changed files with 2 additions and 1 deletions

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