1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-20 17:20:31 +01:00

Turned shutdown messages to minetest.log() too

This commit is contained in:
LeMagnesium 2015-05-24 10:54:02 +02:00
parent 6b9b127804
commit 5752d05da9
2 changed files with 6 additions and 6 deletions

View File

@ -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();

View File

@ -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