mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 01:30:38 +01:00
Turned shutdown messages to minetest.log() too
This commit is contained in:
parent
6b9b127804
commit
5752d05da9
@ -570,7 +570,7 @@ end --write_bookmarks
|
||||
function compassgps.write_settings()
|
||||
--loop through players and set settings
|
||||
--(less error prone than trying to keep settings in sync all the time
|
||||
print(S("compassgps writing settings"))
|
||||
minetest.log("action", S("compassgps writing settings"))
|
||||
local players = minetest.get_connected_players()
|
||||
for i,player in ipairs(players) do
|
||||
local name = player:get_player_name();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user