From ca89e63b27a2548a7615fcf4943c22f88818f6eb Mon Sep 17 00:00:00 2001 From: kwolekr Date: Mon, 29 Dec 2014 21:23:51 -0500 Subject: Add core.get_mapgen_names() to Main Menu API (and use it) Also rewrite mapgen registration for static initialization --- builtin/mainmenu/dlg_create_world.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin') 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") -- cgit v1.2.3