]> git.lizzy.rs Git - minetest.git/blobdiff - builtin/init.lua
Stop autoforward on BACKWARD key-press (#7417)
[minetest.git] / builtin / init.lua
index 590f7fa8cf8da804e4899a85005c2d8b276c0702..f76174be7d5c727fe85b5b20a9a83a584e39646d 100644 (file)
@@ -21,11 +21,10 @@ if core.print then
        core.print = nil -- don't pollute our namespace
 end
 math.randomseed(os.time())
-os.setlocale("C", "numeric")
 minetest = core
 
 -- Load other files
-local scriptdir = core.get_builtin_path() .. DIR_DELIM
+local scriptdir = core.get_builtin_path()
 local gamepath = scriptdir .. "game" .. DIR_DELIM
 local clientpath = scriptdir .. "client" .. DIR_DELIM
 local commonpath = scriptdir .. "common" .. DIR_DELIM
@@ -38,7 +37,7 @@ dofile(commonpath .. "misc_helpers.lua")
 if INIT == "game" then
        dofile(gamepath .. "init.lua")
 elseif INIT == "mainmenu" then
-       local mm_script = core.setting_get("main_menu_script")
+       local mm_script = core.settings:get("main_menu_script")
        if mm_script and mm_script ~= "" then
                dofile(mm_script)
        else