mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00: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:
parent
2ef085967d
commit
e86d2fea8d
3 changed files with 52 additions and 18 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue