From c6cd524f624a4ffd1b462cd5db80bb9080214871 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Fri, 16 Apr 2021 11:59:52 -0400 Subject: [PATCH] fix reporting of log sizes during shutdown --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 44ddf30..2b000ff 100644 --- a/init.lua +++ b/init.lua @@ -622,7 +622,7 @@ minetest.register_on_shutdown(function() end 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 biome_lib.generate_block(true) @@ -631,6 +631,7 @@ minetest.register_on_shutdown(function() if #biome_lib.block_recheck_list > 0 then biome_lib.block_log = table.copy(biome_lib.block_recheck_list) + biome_lib.block_recheck_list = nil while #biome_lib.block_log > 0 do biome_lib.generate_block(true) biome_lib.check_remaining_time()