summaryrefslogtreecommitdiffstats
path: root/source/WorldStorage
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-05 16:48:18 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-05 16:48:18 +0200
commit1e350218ccb73a5609db9dd844dc25ed9b1a8286 (patch)
tree3a6f066a5db8620e5dcc5b6fc39c293b475964d9 /source/WorldStorage
parentChunkDesc: Added heightmap verification (DEBUG-only), not used yet (diff)
downloadcuberite-1e350218ccb73a5609db9dd844dc25ed9b1a8286.tar
cuberite-1e350218ccb73a5609db9dd844dc25ed9b1a8286.tar.gz
cuberite-1e350218ccb73a5609db9dd844dc25ed9b1a8286.tar.bz2
cuberite-1e350218ccb73a5609db9dd844dc25ed9b1a8286.tar.lz
cuberite-1e350218ccb73a5609db9dd844dc25ed9b1a8286.tar.xz
cuberite-1e350218ccb73a5609db9dd844dc25ed9b1a8286.tar.zst
cuberite-1e350218ccb73a5609db9dd844dc25ed9b1a8286.zip
Diffstat (limited to 'source/WorldStorage')
-rw-r--r--source/WorldStorage/WSSAnvil.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/WorldStorage/WSSAnvil.cpp b/source/WorldStorage/WSSAnvil.cpp
index 234ddbd20..2af36b1ad 100644
--- a/source/WorldStorage/WSSAnvil.cpp
+++ b/source/WorldStorage/WSSAnvil.cpp
@@ -29,6 +29,11 @@
+/** If defined, the BlockSkyLight values will be copied over to BlockLight upon chunk saving,
+thus making skylight visible in Minutor's Lighting mode
+*/
+// #define DEBUG_SKYLIGHT
+
/** Maximum number of MCA files that are cached in memory.
Since only the header is actually in the memory, this number can be high, but still, each file means an OS FS handle.
*/
@@ -416,7 +421,11 @@ bool cWSSAnvil::SaveChunkToNBT(const cChunkCoords & a_Chunk, cFastNBTWriter & a_
int SliceSizeNibble = SliceSizeBlock / 2;
const char * BlockTypes = (const char *)(Serializer.m_BlockTypes);
const char * BlockMetas = (const char *)(Serializer.m_BlockMetas);
- const char * BlockLight = (const char *)(Serializer.m_BlockLight);
+ #ifdef DEBUG_SKYLIGHT
+ const char * BlockLight = (const char *)(Serializer.m_BlockSkyLight);
+ #else
+ const char * BlockLight = (const char *)(Serializer.m_BlockLight);
+ #endif
const char * BlockSkyLight = (const char *)(Serializer.m_BlockSkyLight);
for (int Y = 0; Y < 16; Y++)
{