check for IFluidBlock (in addition to Material.liquid) when
determining render height so that non-liquids (gases) render correctly
This commit is contained in:
parent
69700d2227
commit
71cb9dfe52
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue