Fluid Rendering Fixes

This commit is contained in:
tommy1019 2013-07-27 20:32:21 -05:00
parent 077e05e0ed
commit e15c596e42
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
}