aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-12-28 22:23:07 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2016-12-28 22:23:07 +0100
commite65f2330d0adf99894562b50031780b61cac9581 (patch)
tree0c4067ca768baf069b6ecfca7ea4b5630867a139
parent9623dca902f48e3aef1353817762e18f09966e20 (diff)
downloadcurrency-e65f2330d0adf99894562b50031780b61cac9581.tar.gz
currency-e65f2330d0adf99894562b50031780b61cac9581.tar.bz2
currency-e65f2330d0adf99894562b50031780b61cac9581.zip
Changed print() to minetest.log() to avoid annoying players in 0.4.15
-rw-r--r--income.lua4
-rw-r--r--init.lua16
2 files changed, 10 insertions, 10 deletions
diff --git a/income.lua b/income.lua
index 5aa6fbc..2bb42bc 100644
--- a/income.lua
+++ b/income.lua
@@ -11,7 +11,7 @@ minetest.register_globalstep(function(dtime)
players_income[name] = 0
end
players_income[name] = 1
- print("[Currency] basic income for "..name.."")
+ minetest.log("info", "[Currency] basic income for "..name.."")
end
end
end)
@@ -27,7 +27,7 @@ earn_income = function(player)
local inv = player:get_inventory()
inv:add_item("main", {name="currency:minegeld_5", count=count})
players_income[name] = 0
- print("[Currency] added basic income for "..name.." to inventory")
+ minetest.log("info", "[Currency] added basic income for "..name.." to inventory")
end
end
diff --git a/init.lua b/init.lua
index 0c94994..744fcad 100644
--- a/init.lua
+++ b/init.lua
@@ -1,20 +1,20 @@
-print(" Currency mod loading... ")
+minetest.log("info", " Currency mod loading... ")
local modpath = minetest.get_modpath("currency")
dofile(modpath.."/craftitems.lua")
-print("[Currency] Craft_items Loaded!")
+minetest.log("info", "[Currency] Craft_items Loaded!")
dofile(modpath.."/shop.lua")
-print("[Currency] Shop Loaded!")
+minetest.log("info", "[Currency] Shop Loaded!")
dofile(modpath.."/barter.lua")
-print("[Currency] Barter Loaded!")
+minetest.log("info", "[Currency] Barter Loaded!")
dofile(modpath.."/safe.lua")
-print("[Currency] Safe Loaded!")
+minetest.log("info", "[Currency] Safe Loaded!")
dofile(modpath.."/crafting.lua")
-print("[Currency] Crafting Loaded!")
+minetest.log("info", "[Currency] Crafting Loaded!")
if minetest.setting_getbool("creative_mode") then
- print("[Currency] Creative mode in use, skipping basic income.")
+ minetest.log("info", "[Currency] Creative mode in use, skipping basic income.")
else
dofile(modpath.."/income.lua")
- print("[Currency] Income Loaded!")
+ minetest.log("info", "[Currency] Income Loaded!")
end