summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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