1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-15 09:25:37 +02:00

Prevent MapBlocks in generation from being unloaded (#16339)

This change prevents issues arising from partial generation of MapChunks, which are liable to be regenerated completely when ungenerated MapBlocks within are encountered.

Co-authored-by: Po Lu <luangruo@yahoo.com>
Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
Montandalar
2025-09-05 02:57:29 +10:00
committed by GitHub
parent 2ef085967d
commit e86d2fea8d
3 changed files with 52 additions and 18 deletions

View File

@@ -737,6 +737,8 @@ void *EmergeThread::run()
if (!error)
block = finishGen(pos, &bmdata, &modified_blocks);
else
m_map->cancelBlockMake(&bmdata);
if (!block || error)
action = EMERGE_ERRORED;