mirror of
https://github.com/mt-mods/biome_lib.git
synced 2024-11-13 22:20:21 +01:00
if the block list is empty, don't try to start another batch of actions.
This commit is contained in:
parent
3bc8737e2d
commit
1d2593f022
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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user