]> git.lizzy.rs Git - minetest.git/blobdiff - builtin/init.lua
Check node updates whether the blocks are known (#7568)
[minetest.git] / builtin / init.lua
index c9fa70fc7b086d3251ec00ac9758e5a1f45a8531..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
@@ -47,7 +46,6 @@ elseif INIT == "mainmenu" then
 elseif INIT == "async" then
        dofile(asyncpath .. "init.lua")
 elseif INIT == "client" then
-       os.setlocale = nil
        dofile(clientpath .. "init.lua")
 else
        error(("Unrecognized builtin initialization type %s!"):format(tostring(INIT)))