1
0
mirror of https://github.com/mt-mods/biome_lib.git synced 2024-12-24 01:40:17 +01:00

fix reporting of log sizes during shutdown

This commit is contained in:
Vanessa Dannenberg 2021-04-16 11:59:52 -04:00
parent 2dbacae561
commit c6cd524f62

View File

@ -622,7 +622,7 @@ minetest.register_on_shutdown(function()
end end
biome_lib.dbg("Stand by, purging the mapblock log ".. biome_lib.dbg("Stand by, purging the mapblock log "..
"(there are "..(#biome_lib.block_log + #biome_lib.block_recheck_list).." entries) ...", 0) "(there are "..biome_lib.starting_count.." entries) ...", 0)
while #biome_lib.block_log > 0 do while #biome_lib.block_log > 0 do
biome_lib.generate_block(true) biome_lib.generate_block(true)
@ -631,6 +631,7 @@ minetest.register_on_shutdown(function()
if #biome_lib.block_recheck_list > 0 then if #biome_lib.block_recheck_list > 0 then
biome_lib.block_log = table.copy(biome_lib.block_recheck_list) biome_lib.block_log = table.copy(biome_lib.block_recheck_list)
biome_lib.block_recheck_list = nil
while #biome_lib.block_log > 0 do while #biome_lib.block_log > 0 do
biome_lib.generate_block(true) biome_lib.generate_block(true)
biome_lib.check_remaining_time() biome_lib.check_remaining_time()