aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu
diff options
context:
space:
mode:
authorBlockMen <nmuelll@web.de>2014-08-14 07:18:32 +0200
committerBlockMen <nmuelll@web.de>2014-08-14 07:18:32 +0200
commite9e9e42573a50dbf94370996d65b03dca1d5c284 (patch)
treef8ddf28a6745cba44e3e306f08c08cfee61beffd /builtin/mainmenu
parent5e54bf1472039af79b3bf7bfab43d294aed8e9e9 (diff)
downloadminetest-e9e9e42573a50dbf94370996d65b03dca1d5c284.tar.gz
minetest-e9e9e42573a50dbf94370996d65b03dca1d5c284.tar.bz2
minetest-e9e9e42573a50dbf94370996d65b03dca1d5c284.zip
Fix mainmenu game initialisation
Diffstat (limited to 'builtin/mainmenu')
-rw-r--r--builtin/mainmenu/init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/builtin/mainmenu/init.lua b/builtin/mainmenu/init.lua
index 28bf81c90..4f89a0d79 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