aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-12-29 21:23:51 -0500
committerkwolekr <kwolekr@minetest.net>2014-12-29 21:23:51 -0500
commitca89e63b27a2548a7615fcf4943c22f88818f6eb (patch)
tree6e8f0b35321e580d6080a128839406b748b8fc9d /builtin/mainmenu
parent5e2753c712e8f65fa50f4889fc1422393ba21413 (diff)
downloadminetest-ca89e63b27a2548a7615fcf4943c22f88818f6eb.tar.gz
minetest-ca89e63b27a2548a7615fcf4943c22f88818f6eb.tar.bz2
minetest-ca89e63b27a2548a7615fcf4943c22f88818f6eb.zip
Add core.get_mapgen_names() to Main Menu API (and use it)
Also rewrite mapgen registration for static initialization
Diffstat (limited to 'builtin/mainmenu')
-rw-r--r--builtin/mainmenu/dlg_create_world.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/mainmenu/dlg_create_world.lua b/builtin/mainmenu/dlg_create_world.lua
index 9fcd9104b..32e1fbf83 100644
--- a/builtin/mainmenu/dlg_create_world.lua
+++ b/builtin/mainmenu/dlg_create_world.lua
@@ -16,7 +16,7 @@
--51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
local function create_world_formspec(dialogdata)
- local mapgens = {"v5", "v6", "v7", "singlenode"}
+ local mapgens = core.get_mapgen_names()
local current_seed = core.setting_get("fixed_map_seed") or ""
local current_mg = core.setting_get("mg_name")