mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fluid Rendering Fixes
This commit is contained in:
1 parent
077e05e0ed
commit
e15c596e42
2 files changed
+2
-2
No files matched your search
@@ -323,7 +323,7 @@ public abstract class BlockFluidBase extends Block implements IFluidBlock
|
||||
public static double getFlowDirection(IBlockAccess world, int x, int y, int z)
|
||||
{
|
||||
Block block = Block.blocksList[world.getBlockId(x, y, z)];
|
||||
if (!(block instanceof BlockFluidBase))
|
||||
if (world.getBlockMaterial(x, y, z).isLiquid())
|
||||
{
|
||||
return -1000.0;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ public class RenderBlockFluid implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
if (world.getBlockId(x, y, z) == block.blockID)
|
||||
{
|
||||
if (world.getBlockId(x, y - block.densityDir, z) == block.blockID)
|
||||
if (world.getBlockMaterial(x, y - block.densityDir, z).isLiquid())
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user