aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu/dlg_config_world.lua
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-04-17 14:54:50 +0100
committerrubenwardy <rw@rubenwardy.com>2018-04-19 20:14:53 +0100
commit87ad4d8e7f25210cd28d9f2b372aa00aa3dab929 (patch)
treeddeeed2ddca984f0999437517bfdca120919ecd2 /builtin/mainmenu/dlg_config_world.lua
parent36eb823b1cebc92cd7802368ab0bdc5b3679a3cd (diff)
downloadminetest-87ad4d8e7f25210cd28d9f2b372aa00aa3dab929.tar.gz
minetest-87ad4d8e7f25210cd28d9f2b372aa00aa3dab929.tar.bz2
minetest-87ad4d8e7f25210cd28d9f2b372aa00aa3dab929.zip
Add online content repository
Replaces mods and texture pack tabs with a single content tab
Diffstat (limited to 'builtin/mainmenu/dlg_config_world.lua')
-rw-r--r--builtin/mainmenu/dlg_config_world.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/builtin/mainmenu/dlg_config_world.lua b/builtin/mainmenu/dlg_config_world.lua
index fcedadea8..33c5d9bba 100644
--- a/builtin/mainmenu/dlg_config_world.lua
+++ b/builtin/mainmenu/dlg_config_world.lua
@@ -35,7 +35,7 @@ local function get_formspec(data)
mod = {name=""}
end
- local hard_deps, soft_deps = modmgr.get_dependencies(mod.path)
+ local hard_deps, soft_deps = pkgmgr.get_dependencies(mod.path)
retval = retval ..
"label[0,0.7;" .. fgettext("Mod:") .. "]" ..
@@ -88,7 +88,7 @@ local function get_formspec(data)
retval = retval ..
"tablecolumns[color;tree;text]" ..
"table[5.5,0.75;5.75,6;world_config_modlist;"
- retval = retval .. modmgr.render_modlist(data.list)
+ retval = retval .. pkgmgr.render_packagelist(data.list)
retval = retval .. ";" .. data.selected_mod .."]"
return retval
@@ -237,7 +237,7 @@ function create_configure_world_dlg(worldidx)
dlg.data.worldspec = core.get_worlds()[worldidx]
if dlg.data.worldspec == nil then dlg:delete() return nil end
- dlg.data.worldconfig = modmgr.get_worldconfig(dlg.data.worldspec.path)
+ dlg.data.worldconfig = pkgmgr.get_worldconfig(dlg.data.worldspec.path)
if dlg.data.worldconfig == nil or dlg.data.worldconfig.id == nil or
dlg.data.worldconfig.id == "" then
@@ -247,8 +247,8 @@ function create_configure_world_dlg(worldidx)
end
dlg.data.list = filterlist.create(
- modmgr.preparemodlist, --refresh
- modmgr.comparemod, --compare
+ pkgmgr.preparemodlist, --refresh
+ pkgmgr.comparemod, --compare
function(element,uid) --uid match
if element.name == uid then
return true