summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntumDeluge <antumdeluge@gmail.com>2017-06-20 21:33:53 -0700
committerDiego Martínez <kaeza@users.noreply.github.com>2017-07-08 10:25:38 -0300
commit0c308d02ac6b2be36793bd6e716ce3dbe85e61d0 (patch)
tree0dbaf7a2875334142c61a1d49674dddf501bd7b2
parent49e965d28ac5cb33b6c9d948ae67d76c5a0c09c5 (diff)
Replace deprecated `setting_get` with `settings:get`.
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 836d770..e98b5dd 100644
--- a/init.lua
+++ b/init.lua
@@ -13,7 +13,7 @@ local MP = minetest.get_modpath("intllib")
dofile(MP.."/lib.lua")
-local LANG = minetest.setting_get("language")
+local LANG = minetest.settings:get("language")
if not (LANG and (LANG ~= "")) then LANG = os.getenv("LANG") end
if not (LANG and (LANG ~= "")) then LANG = "en" end
@@ -106,7 +106,7 @@ function intllib.get_detected_languages()
local v
- v = minetest.setting_get("language")
+ v = minetest.settings:get("language")
if v and v~="" then
addlang(v)
end