projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e54bf1
)
Fix mainmenu game initialisation
author
BlockMen
<nmuelll@web.de>
Thu, 14 Aug 2014 05:18:32 +0000
(07:18 +0200)
committer
BlockMen
<nmuelll@web.de>
Thu, 14 Aug 2014 05:18:32 +0000
(07:18 +0200)
builtin/mainmenu/init.lua
patch
|
blob
|
history
diff --git
a/builtin/mainmenu/init.lua
b/builtin/mainmenu/init.lua
index 28bf81c90ceae3d2283319eab6bcde0dac1e11c8..4f89a0d79b09a00dedfbe1373e51cb5fd7a59b71 100644
(file)
--- 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