forked from mtcontrib/biome_lib
don't execute the "playing out" shutdown code if log is already empty
This commit is contained in:
parent
e64a41fcc6
commit
9cdcdcfe6b
24
init.lua
24
init.lua
@ -448,20 +448,24 @@ end)
|
|||||||
-- to prevent unpopulated map areas
|
-- to prevent unpopulated map areas
|
||||||
|
|
||||||
minetest.register_on_shutdown(function()
|
minetest.register_on_shutdown(function()
|
||||||
print("[biome_lib] Stand by, playing out the rest of the aircheck mapblock log")
|
if #biome_lib.blocklist_aircheck > 0 then
|
||||||
print("(there are "..#biome_lib.blocklist_aircheck.." entries)...")
|
print("[biome_lib] Stand by, playing out the rest of the aircheck mapblock log")
|
||||||
while true do
|
print("(there are "..#biome_lib.blocklist_aircheck.." entries)...")
|
||||||
biome_lib:generate_block_with_air_checking(0.1)
|
while true do
|
||||||
if #biome_lib.blocklist_aircheck == 0 then return end
|
biome_lib:generate_block_with_air_checking(0.1)
|
||||||
|
if #biome_lib.blocklist_aircheck == 0 then return end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_on_shutdown(function()
|
minetest.register_on_shutdown(function()
|
||||||
print("[biome_lib] Stand by, playing out the rest of the no-aircheck mapblock log")
|
if #biome_lib.blocklist_no_aircheck > 0 then
|
||||||
print("(there are "..#biome_lib.blocklist_no_aircheck.." entries)...")
|
print("[biome_lib] Stand by, playing out the rest of the no-aircheck mapblock log")
|
||||||
while true do
|
print("(there are "..#biome_lib.blocklist_no_aircheck.." entries)...")
|
||||||
biome_lib:generate_block_no_aircheck(0.1)
|
while true do
|
||||||
if #biome_lib.blocklist_no_aircheck == 0 then return end
|
biome_lib:generate_block_no_aircheck(0.1)
|
||||||
|
if #biome_lib.blocklist_no_aircheck == 0 then return end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user