commit
94045ea73e
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue