aboutsummaryrefslogtreecommitdiff
path: root/income.lua
diff options
context:
space:
mode:
authorGabriel PĂ©rez-Cerezo <gabriel@gpcf.eu>2016-12-28 22:23:07 +0100
committerAuke Kok <sofar+github@foo-projects.org>2016-12-31 12:32:50 -0800
commit2be459a49a47a247d3ea947f715007b23dafdde9 (patch)
tree0c4067ca768baf069b6ecfca7ea4b5630867a139 /income.lua
parent9623dca902f48e3aef1353817762e18f09966e20 (diff)
downloadcurrency-2be459a49a47a247d3ea947f715007b23dafdde9.tar.gz
currency-2be459a49a47a247d3ea947f715007b23dafdde9.tar.bz2
currency-2be459a49a47a247d3ea947f715007b23dafdde9.zip
Changed print() to minetest.log() to avoid annoying players in 0.4.15
Diffstat (limited to 'income.lua')
-rw-r--r--income.lua4
1 files changed, 2 insertions, 2 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