forked from mtcontrib/biome_lib
if the block list is empty, don't try to start another batch of actions.
This commit is contained in:
2
init.lua
2
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()
|
||||
|
Reference in New Issue
Block a user