mirror of
https://repo.or.cz/minetest_returnmirror.git
synced 2025-01-09 02:40:16 +01:00
Read minetest.conf for settings
This commit is contained in:
parent
9aa76bead8
commit
6316ce3781
7
init.lua
7
init.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user