diff options
author | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-11-10 23:06:29 +0100 |
---|---|---|
committer | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-11-23 03:17:32 +0100 |
commit | b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc (patch) | |
tree | 543ddb9986d9062f964b8f8d0d1d6dd21bdbfcab /src/ChunkMap.cpp | |
parent | Merge pull request #2678 from cuberite/ln (diff) | |
download | cuberite-b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc.tar cuberite-b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc.tar.gz cuberite-b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc.tar.bz2 cuberite-b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc.tar.lz cuberite-b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc.tar.xz cuberite-b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc.tar.zst cuberite-b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ChunkMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp index d95ffd6ef..0d1127997 100644 --- a/src/ChunkMap.cpp +++ b/src/ChunkMap.cpp @@ -1859,7 +1859,7 @@ bool cChunkMap::ForEachEntityInBox(const cBoundingBox & a_Box, cEntityCallback & void cChunkMap::DoExplosionAt(double a_ExplosionSize, double a_BlockX, double a_BlockY, double a_BlockZ, cVector3iArray & a_BlocksAffected) { // Don't explode if outside of Y range (prevents the following test running into unallocated memory): - if ((a_BlockY < 0) || (a_BlockY > cChunkDef::Height - 1)) + if (!cChunkDef::IsValidHeight(static_cast<int>(a_BlockY))) { return; } |