1
0
Fork 0
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:
Montandalar 2025-09-05 02:57:29 +10:00 committed by GitHub
parent 2ef085967d
commit e86d2fea8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;