]> git.lizzy.rs Git - minetest.git/blobdiff - builtin/mainmenu/textures.lua
World config: Add modpack descriptions and remove dependencies there (#7397)
[minetest.git] / builtin / mainmenu / textures.lua
index dadbb093e8ad041c9004e9654670726ba0837c28..68b05dc1895181304fbd7b0ddc0a307877442337 100644 (file)
@@ -24,7 +24,7 @@ function mm_texture.init()
                                                DIR_DELIM .. "pack" .. DIR_DELIM
        mm_texture.basetexturedir = mm_texture.defaulttexturedir
        
-       mm_texture.texturepack = core.setting_get("texture_path")
+       mm_texture.texturepack = core.settings:get("texture_path")
        
        mm_texture.gameid = nil
 end
@@ -61,7 +61,7 @@ function mm_texture.reset()
        mm_texture.set_generic("header")
        
        if not have_bg then
-               if core.setting_getbool("menu_clouds") then
+               if core.settings:get_bool("menu_clouds") then
                        core.set_clouds(true)
                else
                        mm_texture.set_dirt_bg()
@@ -88,7 +88,7 @@ function mm_texture.update_game(gamedetails)
        
        if not have_bg then
                
-               if core.setting_getbool("menu_clouds") then
+               if core.settings:get_bool("menu_clouds") then
                        core.set_clouds(true)
                else
                        mm_texture.set_dirt_bg()
@@ -143,7 +143,7 @@ function mm_texture.set_game(identifier, gamedetails)
                end
        end
        
-       -- Find out how many randomized textures the subgame provides
+       -- Find out how many randomized textures the game provides
        local n = 0
        local filename
        local menu_files = core.get_dir_list(gamedetails.path .. DIR_DELIM .. "menu", false)