1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00
This commit is contained in:
Xeno333 2025-09-23 22:12:46 -05:00 committed by GitHub
commit c7d419d3be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -96,6 +96,8 @@ local function create_world_formspec(dialogdata)
if game ~= nil then
local gameconfig = Settings(game.path.."/game.conf")
current_mg = current_mg or gameconfig:get("default_mapgen") or core.settings:get("mg_name")
local allowed_mapgens = (gameconfig:get("allowed_mapgens") or ""):split()
for key, value in pairs(allowed_mapgens) do
allowed_mapgens[key] = value:trim()
@ -456,7 +458,6 @@ function create_create_world_dlg()
worldname = "",
-- settings the world is created with:
seed = core.settings:get("fixed_map_seed") or "",
mg = core.settings:get("mg_name"),
flags = {
main = core.settings:get_flags("mg_flags"),
v5 = core.settings:get_flags("mgv5_spflags"),