diff options
author | fz72 <fz72@gmx.de> | 2015-02-17 16:53:49 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-18 08:57:14 +0100 |
commit | 0a299fd4e5dff20bb09f54f2329aedcc8d22ef9d (patch) | |
tree | 92694a0c647e475754fae11f73c82b24a852a8cf /builtin | |
parent | 2079462e62b478555b1b614a90692b6bc9bb5d34 (diff) | |
download | minetest-0a299fd4e5dff20bb09f54f2329aedcc8d22ef9d.tar.gz minetest-0a299fd4e5dff20bb09f54f2329aedcc8d22ef9d.tar.bz2 minetest-0a299fd4e5dff20bb09f54f2329aedcc8d22ef9d.zip |
Fix map_seed not changed when creating a new world after login to another
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/mainmenu/dlg_create_world.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/mainmenu/dlg_create_world.lua b/builtin/mainmenu/dlg_create_world.lua index 32e1fbf83..b42d119e0 100644 --- a/builtin/mainmenu/dlg_create_world.lua +++ b/builtin/mainmenu/dlg_create_world.lua @@ -90,6 +90,8 @@ local function create_world_buttonhandler(this, fields) local message = nil + core.setting_set("fixed_map_seed", fields["te_seed"]) + if not menudata.worldlist:uid_exists_raw(worldname) then core.setting_set("mg_name",fields["dd_mapgen"]) message = core.create_world(worldname,gameindex) @@ -97,8 +99,6 @@ local function create_world_buttonhandler(this, fields) message = fgettext("A world named \"$1\" already exists", worldname) end - core.setting_set("fixed_map_seed", fields["te_seed"]) - if message ~= nil then gamedata.errormessage = message else |