mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 14:16:06 +02:00
Turned shutdown messages to minetest.log() too
This commit is contained in:
@ -42,7 +42,7 @@ local DEBUG = false --... except if you want to spam the console with debugging
|
||||
|
||||
function plantslib:dbg(msg)
|
||||
if DEBUG then
|
||||
print("[Plantlife] "..msg)
|
||||
minetest.log("action", "[Plantlife] "..msg)
|
||||
minetest.log("verbose", "[Plantlife] "..msg)
|
||||
end
|
||||
end
|
||||
@ -446,8 +446,8 @@ end)
|
||||
-- to prevent unpopulated map areas
|
||||
|
||||
minetest.register_on_shutdown(function()
|
||||
print("[plants_lib] Stand by, playing out the rest of the aircheck mapblock log")
|
||||
print("(there are "..#plantslib.blocklist_aircheck.." entries)...")
|
||||
minetest.log("[plants_lib] Stand by, playing out the rest of the aircheck mapblock log")
|
||||
minetest.log("(there are "..#plantslib.blocklist_aircheck.." entries)...")
|
||||
while true do
|
||||
plantslib:generate_block_with_air_checking(0.1)
|
||||
if #plantslib.blocklist_aircheck == 0 then return end
|
||||
@ -455,8 +455,8 @@ minetest.register_on_shutdown(function()
|
||||
end)
|
||||
|
||||
minetest.register_on_shutdown(function()
|
||||
print("[plants_lib] Stand by, playing out the rest of the no-aircheck mapblock log")
|
||||
print("(there are "..#plantslib.blocklist_aircheck.." entries)...")
|
||||
minetest.log("[plants_lib] Stand by, playing out the rest of the no-aircheck mapblock log")
|
||||
minetest.log("(there are "..#plantslib.blocklist_aircheck.." entries)...")
|
||||
while true do
|
||||
plantslib:generate_block_no_aircheck(0.1)
|
||||
if #plantslib.blocklist_no_aircheck == 0 then return end
|
||||
|
Reference in New Issue
Block a user