From 8e5c2c4897121154ddece774932726e1253e40d0 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Sun, 1 Oct 2023 13:10:27 +1300 Subject: [PATCH] Make automatic world name generation check worlds from other games as well --- builtin/mainmenu/dlg_create_world.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/mainmenu/dlg_create_world.lua b/builtin/mainmenu/dlg_create_world.lua index aa6b78f3e..9f457e08c 100644 --- a/builtin/mainmenu/dlg_create_world.lua +++ b/builtin/mainmenu/dlg_create_world.lua @@ -397,7 +397,7 @@ local function create_world_buttonhandler(this, fields) -- generated name number found. if worldname == "" then local worldnum_max = 0 - for _, world in ipairs(menudata.worldlist:get_list()) do + for _, world in ipairs(menudata.worldlist:get_raw_list()) do if world.name:match("^World %d+$") then local worldnum = tonumber(world.name:sub(6)) worldnum_max = math.max(worldnum_max, worldnum)