diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-08-30 12:21:39 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-08-30 12:21:39 +0200 |
commit | 80bd0a54579cbe5188d42bf8e1e51724d19a6fcf (patch) | |
tree | 39ded239dea2d76854283a47b3f29cc12b8801e1 /src/Simulator/VanillaFluidSimulator.cpp | |
parent | Added speed entity effect. (diff) | |
parent | cChunk: Fixed the Coords param. (diff) | |
download | cuberite-80bd0a54579cbe5188d42bf8e1e51724d19a6fcf.tar cuberite-80bd0a54579cbe5188d42bf8e1e51724d19a6fcf.tar.gz cuberite-80bd0a54579cbe5188d42bf8e1e51724d19a6fcf.tar.bz2 cuberite-80bd0a54579cbe5188d42bf8e1e51724d19a6fcf.tar.lz cuberite-80bd0a54579cbe5188d42bf8e1e51724d19a6fcf.tar.xz cuberite-80bd0a54579cbe5188d42bf8e1e51724d19a6fcf.tar.zst cuberite-80bd0a54579cbe5188d42bf8e1e51724d19a6fcf.zip |
Diffstat (limited to 'src/Simulator/VanillaFluidSimulator.cpp')
-rw-r--r-- | src/Simulator/VanillaFluidSimulator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Simulator/VanillaFluidSimulator.cpp b/src/Simulator/VanillaFluidSimulator.cpp index 18d9b07e1..6df75eebb 100644 --- a/src/Simulator/VanillaFluidSimulator.cpp +++ b/src/Simulator/VanillaFluidSimulator.cpp @@ -98,7 +98,7 @@ int cVanillaFluidSimulator::CalculateFlowCost(cChunk * a_Chunk, int a_RelX, int } // Check if block below is passable - if (!a_Chunk->UnboundedRelGetBlock(a_RelX, a_RelY - 1, a_RelZ, BlockType, BlockMeta)) + if ((a_RelY > 0) && !a_Chunk->UnboundedRelGetBlock(a_RelX, a_RelY - 1, a_RelZ, BlockType, BlockMeta)) { return Cost; } |