Merge pull request #1395 from lawremi/rendergasfix
Fix rendering height of non-liquid fluids
This commit is contained in:
commit
e2ae05ccb6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue