forked from mtcontrib/minetest_returnmirror
Update for 0.4.16 settings syntax
This commit is contained in:
parent
e1c0ff4b53
commit
0b05efa1db
8
init.lua
8
init.lua
@ -9,11 +9,11 @@ local returnmirror = {}
|
||||
returnmirror.cost_teleport = 200
|
||||
returnmirror.cost_set = 20
|
||||
|
||||
if tonumber(minetest.setting_get("returnmirror_cost_teleport")) ~= nil then
|
||||
returnmirror.cost_teleport = tonumber(minetest.setting_get("returnmirror_cost_teleport"))
|
||||
if tonumber(minetest.settings:get("returnmirror_cost_teleport")) ~= nil then
|
||||
returnmirror.cost_teleport = tonumber(minetest.settings: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"))
|
||||
if tonumber(minetest.settings:get("returnmirror_cost_set")) ~= nil then
|
||||
returnmirror.cost_set = tonumber(minetest.settings:get("returnmirror_cost_set"))
|
||||
end
|
||||
|
||||
if minetest.get_modpath("mana") ~= nil then
|
||||
|
Loading…
Reference in New Issue
Block a user