summaryrefslogtreecommitdiffstats
path: root/src/Simulator/FloodyFluidSimulator.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-03-19 14:38:08 +0100
committerMattes D <github@xoft.cz>2015-03-19 14:38:08 +0100
commit241c441de74f2ef8dce4d2fbfcf74b8924c13e3e (patch)
treefb211b784e900716f7d1fc34c2ae2221e3294a11 /src/Simulator/FloodyFluidSimulator.cpp
parentAPIDump: Removed the tolua.cast() example. (diff)
parentRemoved wrong else clause, which caused that the following if-Statement got only executed in rare cases. This has blocked the creation of new Fluid-Sources. Bugfix #1783 (diff)
downloadcuberite-241c441de74f2ef8dce4d2fbfcf74b8924c13e3e.tar
cuberite-241c441de74f2ef8dce4d2fbfcf74b8924c13e3e.tar.gz
cuberite-241c441de74f2ef8dce4d2fbfcf74b8924c13e3e.tar.bz2
cuberite-241c441de74f2ef8dce4d2fbfcf74b8924c13e3e.tar.lz
cuberite-241c441de74f2ef8dce4d2fbfcf74b8924c13e3e.tar.xz
cuberite-241c441de74f2ef8dce4d2fbfcf74b8924c13e3e.tar.zst
cuberite-241c441de74f2ef8dce4d2fbfcf74b8924c13e3e.zip
Diffstat (limited to 'src/Simulator/FloodyFluidSimulator.cpp')
-rw-r--r--src/Simulator/FloodyFluidSimulator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Simulator/FloodyFluidSimulator.cpp b/src/Simulator/FloodyFluidSimulator.cpp
index bcd083294..a9481edb0 100644
--- a/src/Simulator/FloodyFluidSimulator.cpp
+++ b/src/Simulator/FloodyFluidSimulator.cpp
@@ -108,8 +108,9 @@ void cFloodyFluidSimulator::SimulateBlock(cChunk * a_Chunk, int a_RelX, int a_Re
{
SpreadXZ(a_Chunk, a_RelX, a_RelY, a_RelZ, NewMeta);
}
+
// If source creation is on, check for it here:
- else if (
+ if (
(m_NumNeighborsForSource > 0) && // Source creation is on
(MyMeta == m_Falloff) && // Only exactly one block away from a source (fast bail-out)
!IsPassableForFluid(Below) && // Only exactly 1 block deep