mirror of
https://github.com/mt-mods/biome_lib.git
synced 2024-12-25 10:20:18 +01:00
print a message when the queue goes idle.
This commit is contained in:
parent
50f921a85a
commit
1dc0febd8c
5
init.lua
5
init.lua
@ -770,6 +770,11 @@ if DEBUG_LEVEL >= 3 then
|
|||||||
if biome_lib.last_count ~= #biome_lib.block_log 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.dbg("Pending block count: "..(#biome_lib.block_log + #biome_lib.block_recheck_list), 3)
|
||||||
biome_lib.last_count = #biome_lib.block_log
|
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
|
end
|
||||||
minetest.after(1, biome_lib.show_pending_block_count)
|
minetest.after(1, biome_lib.show_pending_block_count)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user