summaryrefslogtreecommitdiffstats
path: root/src/Simulator/VanillaFluidSimulator.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-03-07 21:33:22 +0100
committerMattes D <github@xoft.cz>2014-03-07 21:33:22 +0100
commitae84cdf24222909e97d1cd350821a8fbb0dcbeeb (patch)
tree56fdeb8791d513e577ef557850361e99a430ed59 /src/Simulator/VanillaFluidSimulator.cpp
parentFixed cBlockArea schematic string saving signature. (diff)
parentAdded some comments (diff)
downloadcuberite-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 'src/Simulator/VanillaFluidSimulator.cpp')
-rw-r--r--src/Simulator/VanillaFluidSimulator.cpp4
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;