Merge pull request #2035 from rubensworks/master

Fix source block check for BlockFluidClassic
This commit is contained in:
LexManos 2015-07-21 16:43:44 -07:00
commit 81bb69b6c9
1 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ public class BlockFluidClassic extends BlockFluidBase
public boolean isSourceBlock(IBlockAccess world, BlockPos pos)
{
return world.getBlockState(pos) == this && ((Integer)world.getBlockState(pos).getValue(LEVEL)).intValue() == 0;
return world.getBlockState(pos).getBlock() == this && ((Integer)world.getBlockState(pos).getValue(LEVEL)).intValue() == 0;
}
protected boolean[] getOptimalFlowDirections(World world, BlockPos pos)
@ -348,4 +348,4 @@ public class BlockFluidClassic extends BlockFluidBase
{
return isSourceBlock(world, pos);
}
}
}