diff options
author | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-11-23 18:08:56 +0100 |
---|---|---|
committer | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-11-23 18:10:58 +0100 |
commit | 9d07be62d3d989f846b13e81273fd710aaf513b3 (patch) | |
tree | fd768e61ce1f2a14be57addc22420f3bfa002d4b /src | |
parent | Merge pull request #2683 from Gargaj/patch-1 (diff) | |
download | cuberite-9d07be62d3d989f846b13e81273fd710aaf513b3.tar cuberite-9d07be62d3d989f846b13e81273fd710aaf513b3.tar.gz cuberite-9d07be62d3d989f846b13e81273fd710aaf513b3.tar.bz2 cuberite-9d07be62d3d989f846b13e81273fd710aaf513b3.tar.lz cuberite-9d07be62d3d989f846b13e81273fd710aaf513b3.tar.xz cuberite-9d07be62d3d989f846b13e81273fd710aaf513b3.tar.zst cuberite-9d07be62d3d989f846b13e81273fd710aaf513b3.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 0d1127997..2c9831e08 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 (!cChunkDef::IsValidHeight(static_cast<int>(a_BlockY))) + if (!cChunkDef::IsValidHeight(FloorC(a_BlockY))) { return; } |