summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-01-12 10:20:35 +0100
committerMattes D <github@xoft.cz>2016-01-12 10:20:35 +0100
commit97ef08de847c758de3bcbe9fef0c0e8cb2346027 (patch)
tree5fab240b631432a6d17622d479b9a5e1f6721329
parentMerge pull request #2849 from cuberite/export_getseed (diff)
parentAdded detailed logging to cBlockArea::Read() bad Y coords. (diff)
downloadcuberite-97ef08de847c758de3bcbe9fef0c0e8cb2346027.tar
cuberite-97ef08de847c758de3bcbe9fef0c0e8cb2346027.tar.gz
cuberite-97ef08de847c758de3bcbe9fef0c0e8cb2346027.tar.bz2
cuberite-97ef08de847c758de3bcbe9fef0c0e8cb2346027.tar.lz
cuberite-97ef08de847c758de3bcbe9fef0c0e8cb2346027.tar.xz
cuberite-97ef08de847c758de3bcbe9fef0c0e8cb2346027.tar.zst
cuberite-97ef08de847c758de3bcbe9fef0c0e8cb2346027.zip
-rw-r--r--src/BlockArea.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/BlockArea.cpp b/src/BlockArea.cpp
index 761a7b355..34d3bf54a 100644
--- a/src/BlockArea.cpp
+++ b/src/BlockArea.cpp
@@ -454,22 +454,30 @@ bool cBlockArea::Read(cForEachChunkProvider * a_ForEachChunkProvider, int a_MinB
// Check coords validity:
if (a_MinBlockY < 0)
{
- LOGWARNING("%s: MinBlockY less than zero, adjusting to zero", __FUNCTION__);
+ LOGWARNING("%s: MinBlockY less than zero, adjusting to zero. Coords: {%d, %d, %d} - {%d, %d, %d}",
+ __FUNCTION__, a_MinBlockX, a_MinBlockY, a_MinBlockZ, a_MaxBlockX, a_MaxBlockY, a_MaxBlockZ
+ );
a_MinBlockY = 0;
}
else if (a_MinBlockY >= cChunkDef::Height)
{
- LOGWARNING("%s: MinBlockY more than chunk height, adjusting to chunk height", __FUNCTION__);
+ LOGWARNING("%s: MinBlockY more than chunk height, adjusting to chunk height. Coords: {%d, %d, %d} - {%d, %d, %d}",
+ __FUNCTION__, a_MinBlockX, a_MinBlockY, a_MinBlockZ, a_MaxBlockX, a_MaxBlockY, a_MaxBlockZ
+ );
a_MinBlockY = cChunkDef::Height - 1;
}
if (a_MaxBlockY < 0)
{
- LOGWARNING("%s: MaxBlockY less than zero, adjusting to zero", __FUNCTION__);
+ LOGWARNING("%s: MaxBlockY less than zero, adjusting to zero. Coords: {%d, %d, %d} - {%d, %d, %d}",
+ __FUNCTION__, a_MinBlockX, a_MinBlockY, a_MinBlockZ, a_MaxBlockX, a_MaxBlockY, a_MaxBlockZ
+ );
a_MaxBlockY = 0;
}
else if (a_MaxBlockY > cChunkDef::Height)
{
- LOGWARNING("%s: MaxBlockY more than chunk height, adjusting to chunk height", __FUNCTION__);
+ LOGWARNING("%s: MaxBlockY more than chunk height, adjusting to chunk height. Coords: {%d, %d, %d} - {%d, %d, %d}",
+ __FUNCTION__, a_MinBlockX, a_MinBlockY, a_MinBlockZ, a_MaxBlockX, a_MaxBlockY, a_MaxBlockZ
+ );
a_MaxBlockY = cChunkDef::Height;
}