From: BlockMen Date: Thu, 14 Aug 2014 05:18:32 +0000 (+0200) Subject: Fix mainmenu game initialisation X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=e9e9e42573a50dbf94370996d65b03dca1d5c284;p=zefram%2Fminetest%2Fminetest_engine.git Fix mainmenu game initialisation --- diff --git a/builtin/mainmenu/init.lua b/builtin/mainmenu/init.lua index 28bf81c9..4f89a0d7 100644 --- a/builtin/mainmenu/init.lua +++ b/builtin/mainmenu/init.lua @@ -84,6 +84,11 @@ local function init_globals() menudata.worldlist:add_sort_mechanism("alphabetic",sort_worlds_alphabetic) menudata.worldlist:set_sortmode("alphabetic") + if not core.setting_get("menu_last_game") then + local default_game = core.setting_get("default_game") or "minetest" + core.setting_set("menu_last_game", default_game ) + end + mm_texture.init() --create main tabview