summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-12-25 19:38:52 +0100
committermadmaxoft <github@xoft.cz>2013-12-25 19:39:07 +0100
commitc2befd977727b8091d04db900ede2038e3f755d0 (patch)
treeae357b7369c08f645058fe13114da9c731592adc /src
parentMerge pull request #470 from mc-server/mobileentitysaving (diff)
downloadcuberite-c2befd977727b8091d04db900ede2038e3f755d0.tar
cuberite-c2befd977727b8091d04db900ede2038e3f755d0.tar.gz
cuberite-c2befd977727b8091d04db900ede2038e3f755d0.tar.bz2
cuberite-c2befd977727b8091d04db900ede2038e3f755d0.tar.lz
cuberite-c2befd977727b8091d04db900ede2038e3f755d0.tar.xz
cuberite-c2befd977727b8091d04db900ede2038e3f755d0.tar.zst
cuberite-c2befd977727b8091d04db900ede2038e3f755d0.zip
Diffstat (limited to '')
-rw-r--r--src/BlockArea.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BlockArea.cpp b/src/BlockArea.cpp
index a5309f995..03ac13207 100644
--- a/src/BlockArea.cpp
+++ b/src/BlockArea.cpp
@@ -301,10 +301,10 @@ bool cBlockArea::Read(cWorld * a_World, int a_MinBlockX, int a_MaxBlockX, int a_
LOGWARNING("%s: MaxBlockY less than zero, adjusting to zero", __FUNCTION__);
a_MaxBlockY = 0;
}
- else if (a_MaxBlockY >= cChunkDef::Height)
+ else if (a_MaxBlockY > cChunkDef::Height)
{
LOGWARNING("%s: MaxBlockY more than chunk height, adjusting to chunk height", __FUNCTION__);
- a_MaxBlockY = cChunkDef::Height - 1;
+ a_MaxBlockY = cChunkDef::Height;
}
// Allocate the needed memory: