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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user