diff options
author | Mattes D <github@xoft.cz> | 2014-08-29 13:58:41 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-08-29 13:58:41 +0200 |
commit | d0551e2e0a98a28f31a88d489d17b408e4a7d38d (patch) | |
tree | 4a1e9353627d2d4ce24ffc6f986356e36c1e0a08 /src | |
parent | Fixed conversion warning. (diff) | |
download | cuberite-d0551e2e0a98a28f31a88d489d17b408e4a7d38d.tar cuberite-d0551e2e0a98a28f31a88d489d17b408e4a7d38d.tar.gz cuberite-d0551e2e0a98a28f31a88d489d17b408e4a7d38d.tar.bz2 cuberite-d0551e2e0a98a28f31a88d489d17b408e4a7d38d.tar.lz cuberite-d0551e2e0a98a28f31a88d489d17b408e4a7d38d.tar.xz cuberite-d0551e2e0a98a28f31a88d489d17b408e4a7d38d.tar.zst cuberite-d0551e2e0a98a28f31a88d489d17b408e4a7d38d.zip |
Diffstat (limited to 'src')
-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; } |