parent
ba079038af
commit
4377a5c31e
@ -102,10 +102,7 @@ int cVanillaFluidSimulator::CalculateFlowCost(cChunk * a_Chunk, int a_RelX, int
|
|||||||
{
|
{
|
||||||
return Cost;
|
return Cost;
|
||||||
}
|
}
|
||||||
if (
|
if (IsPassableForFluid(BlockType) || IsBlockLiquid(BlockType))
|
||||||
IsPassableForFluid(BlockType) || // The block can be passed by the liquid ...
|
|
||||||
(IsBlockLiquid(BlockType) && (BlockMeta != 0)) // ... or it is a liquid and not a source block
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
// Path found, exit
|
// Path found, exit
|
||||||
return a_Iteration;
|
return a_Iteration;
|
||||||
|
Loading…
Reference in New Issue
Block a user