mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Merge pull request #1395 from lawremi/rendergasfix
Fix rendering height of non-liquid fluids
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user