From 5752d05da9afb9628aadf5e4f9fb478779573ee6 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sun, 24 May 2015 10:54:02 +0200 Subject: [PATCH] Turned shutdown messages to minetest.log() too --- mods/compassgps/init.lua | 2 +- mods/plantlife_modpack/plants_lib/init.lua | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mods/compassgps/init.lua b/mods/compassgps/init.lua index 95cafc6f..2e1d52e3 100644 --- a/mods/compassgps/init.lua +++ b/mods/compassgps/init.lua @@ -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(); diff --git a/mods/plantlife_modpack/plants_lib/init.lua b/mods/plantlife_modpack/plants_lib/init.lua index d2b7fc68..2e29c55c 100755 --- a/mods/plantlife_modpack/plants_lib/init.lua +++ b/mods/plantlife_modpack/plants_lib/init.lua @@ -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