summaryrefslogtreecommitdiff
path: root/builtin/mainmenu/tab_texturepacks.lua
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2015-05-04 14:59:13 -0400
committerShadowNinja <shadowninja@minetest.net>2015-05-16 18:33:22 -0400
commit8f9af57314f71aae1cc77e13f9996e13015d776d (patch)
tree6d939e4d54ef864e9463adce51eed14c73d7e61a /builtin/mainmenu/tab_texturepacks.lua
parent6c06330daf04ed1c390131755b64338ca7d79a7e (diff)
downloadminetest-8f9af57314f71aae1cc77e13f9996e13015d776d.tar.gz
minetest-8f9af57314f71aae1cc77e13f9996e13015d776d.tar.bz2
minetest-8f9af57314f71aae1cc77e13f9996e13015d776d.zip
Add core.get_dir_list
Diffstat (limited to 'builtin/mainmenu/tab_texturepacks.lua')
-rw-r--r--builtin/mainmenu/tab_texturepacks.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/mainmenu/tab_texturepacks.lua b/builtin/mainmenu/tab_texturepacks.lua
index d32c073ab..9417b94e0 100644
--- a/builtin/mainmenu/tab_texturepacks.lua
+++ b/builtin/mainmenu/tab_texturepacks.lua
@@ -50,7 +50,7 @@ local function get_formspec(tabview, name, tabdata)
"textlist[4,0.25;7.5,5.0;TPs;"
local current_texture_path = core.setting_get("texture_path")
- local list = filter_texture_pack_list(core.get_dirlist(core.get_texturepath(), true))
+ local list = filter_texture_pack_list(core.get_dir_list(core.get_texturepath(), true))
local index = tonumber(core.setting_get("mainmenu_last_selected_TP"))
if index == nil then index = 1 end
@@ -94,7 +94,7 @@ local function main_button_handler(tabview, fields, name, tabdata)
local index = core.get_textlist_index("TPs")
core.setting_set("mainmenu_last_selected_TP",
index)
- local list = filter_texture_pack_list(core.get_dirlist(core.get_texturepath(), true))
+ local list = filter_texture_pack_list(core.get_dir_list(core.get_texturepath(), true))
local current_index = core.get_textlist_index("TPs")
if current_index ~= nil and #list >= current_index then
local new_path = core.get_texturepath()..DIR_DELIM..list[current_index]