summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-12-26 10:56:05 +0100
committermadmaxoft <github@xoft.cz>2013-12-26 10:59:01 +0100
commit5689c001319149a200740969b16688d271b6c749 (patch)
tree859e4f1098115a412a3600483f4125c4aebcaa65
parentMerge pull request #461 from mc-server/repeaters (diff)
downloadcuberite-5689c001319149a200740969b16688d271b6c749.tar
cuberite-5689c001319149a200740969b16688d271b6c749.tar.gz
cuberite-5689c001319149a200740969b16688d271b6c749.tar.bz2
cuberite-5689c001319149a200740969b16688d271b6c749.tar.lz
cuberite-5689c001319149a200740969b16688d271b6c749.tar.xz
cuberite-5689c001319149a200740969b16688d271b6c749.tar.zst
cuberite-5689c001319149a200740969b16688d271b6c749.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 03ac13207..1148908c6 100644
--- a/src/BlockArea.cpp
+++ b/src/BlockArea.cpp
@@ -349,10 +349,10 @@ bool cBlockArea::Write(cWorld * a_World, int a_MinBlockX, int a_MinBlockY, int a
LOGWARNING("%s: MinBlockY less than zero, adjusting to zero", __FUNCTION__);
a_MinBlockY = 0;
}
- else if (a_MinBlockY >= cChunkDef::Height - m_SizeY)
+ else if (a_MinBlockY > cChunkDef::Height - m_SizeY)
{
LOGWARNING("%s: MinBlockY + m_SizeY more than chunk height, adjusting to chunk height", __FUNCTION__);
- a_MinBlockY = cChunkDef::Height - m_SizeY - 1;
+ a_MinBlockY = cChunkDef::Height - m_SizeY;
}
return a_World->WriteBlockArea(*this, a_MinBlockX, a_MinBlockY, a_MinBlockZ, a_DataTypes);