mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fix source block check for BlockFluidClassic
This commit is contained in:
1 parent
cd313c195b
commit
0cf1f0d51c
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user