1
0
mirror of https://github.com/mt-mods/biome_lib.git synced 2024-11-13 22:20:21 +01:00

print a message when the queue goes idle.

This commit is contained in:
Vanessa Dannenberg 2021-04-07 05:26:31 -04:00
parent 50f921a85a
commit 1dc0febd8c

View File

@ -770,6 +770,11 @@ if DEBUG_LEVEL >= 3 then
if biome_lib.last_count ~= #biome_lib.block_log then
biome_lib.dbg("Pending block count: "..(#biome_lib.block_log + #biome_lib.block_recheck_list), 3)
biome_lib.last_count = #biome_lib.block_log
biome_lib.queue_idle_flag = false
elseif not biome_lib.queue_idle_flag then
biome_lib.dbg("Mapblock queue only contains blocks that can't yet be processed.", 3)
biome_lib.dbg("Idling the queue until new mapblocks show up.", 3)
biome_lib.queue_idle_flag = true
end
minetest.after(1, biome_lib.show_pending_block_count)
end