mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
check for IFluidBlock (in addition to Material.liquid) when
determining render height so that non-liquids (gases) render correctly
This commit is contained in:
1 parent
69700d2227
commit
71cb9dfe52
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user