diff options
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/server.cpp b/src/server.cpp index 63d8e31db..925b2e0d7 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -201,10 +201,20 @@ void * EmergeThread::Thread() } else { + // Get, load or create sector ServerMapSector *sector = - (ServerMapSector*)map.getSectorNoGenerateNoEx(p2d); + (ServerMapSector*)map.createSector(p2d); + // Generate block block = map.generateBlock(p, block, sector, changed_blocks, lighting_invalidated_blocks); + if(block == NULL) + got_block = false; + } + } + else + { + if(block->getLightingExpired()){ + lighting_invalidated_blocks[block->getPos()] = block; } } |