Read minetest.conf for settings

This commit is contained in:
Wuzzy 2015-02-14 00:40:19 +01:00
parent 9aa76bead8
commit 6316ce3781

View File

@ -2,6 +2,13 @@ returnmirror = {}
returnmirror.cost_teleport = 100
returnmirror.cost_set = 20
if tonumber(minetest.setting_get("returnmirror_cost_teleport")) ~= nil then
returnmirror.cost_teleport = tonumber(minetest.setting_get("returnmirror_cost_teleport"))
end
if tonumber(minetest.setting_get("returnmirror_cost_set")) ~= nil then
returnmirror.cost_set = tonumber(minetest.setting_get("returnmirror_cost_set"))
end
if minetest.get_modpath("mana") ~= nil then
returnmirror.mana = true
else