diff options
author | Mattes D <github@xoft.cz> | 2014-03-07 21:33:22 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-03-07 21:33:22 +0100 |
commit | ae84cdf24222909e97d1cd350821a8fbb0dcbeeb (patch) | |
tree | 56fdeb8791d513e577ef557850361e99a430ed59 /src/Simulator/VanillaFluidSimulator.cpp | |
parent | Fixed cBlockArea schematic string saving signature. (diff) | |
parent | Added some comments (diff) | |
download | cuberite-ae84cdf24222909e97d1cd350821a8fbb0dcbeeb.tar cuberite-ae84cdf24222909e97d1cd350821a8fbb0dcbeeb.tar.gz cuberite-ae84cdf24222909e97d1cd350821a8fbb0dcbeeb.tar.bz2 cuberite-ae84cdf24222909e97d1cd350821a8fbb0dcbeeb.tar.lz cuberite-ae84cdf24222909e97d1cd350821a8fbb0dcbeeb.tar.xz cuberite-ae84cdf24222909e97d1cd350821a8fbb0dcbeeb.tar.zst cuberite-ae84cdf24222909e97d1cd350821a8fbb0dcbeeb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Simulator/VanillaFluidSimulator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Simulator/VanillaFluidSimulator.cpp b/src/Simulator/VanillaFluidSimulator.cpp index 5308d162b..78aff9d68 100644 --- a/src/Simulator/VanillaFluidSimulator.cpp +++ b/src/Simulator/VanillaFluidSimulator.cpp @@ -86,7 +86,7 @@ int cVanillaFluidSimulator::CalculateFlowCost(cChunk * a_Chunk, int a_RelX, int { return Cost; } - if (!IsPassableForFluid(BlockType)) + if (!IsPassableForFluid(BlockType) && !IsBlockLiquid(BlockType)) { return Cost; } @@ -96,7 +96,7 @@ int cVanillaFluidSimulator::CalculateFlowCost(cChunk * a_Chunk, int a_RelX, int { return Cost; } - if (IsPassableForFluid(BlockType)) + if (IsPassableForFluid(BlockType) || IsBlockLiquid(BlockType)) { // Path found, exit return a_Iteration; |