From 1d2593f022f648d254f0e5191870930c77609e09 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Tue, 6 Apr 2021 13:08:43 -0400 Subject: [PATCH] if the block list is empty, don't try to start another batch of actions. --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index 342c175..c02435a 100644 --- a/init.lua +++ b/init.lua @@ -512,6 +512,8 @@ biome_lib.queue_run_ratio = 100 - rr biome_lib.entries_per_step = math.max(-rr, 1) minetest.register_globalstep(function(dtime) + if not biome_lib.block_log[1] then return end -- the block log is empty + if math.random(100) > biome_lib.queue_run_ratio then return end for s = 1, biome_lib.entries_per_step do biome_lib.generate_block()