1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-21 18:11:11 +00:00

World config dialog: Use engine determined path for game mods

This commit is contained in:
Kahrl 2013-08-19 13:55:04 +02:00
parent 8548bb75b6
commit 4242782dc2
3 changed files with 39 additions and 33 deletions

View file

@ -237,13 +237,11 @@ function menu.update_last_game()
if current_world == nil then
return
end
for i=1,#gamemgr.games,1 do
if gamemgr.games[i].id == current_world.gameid then
menu.last_game = i
engine.setting_set("main_menu_last_game_idx",menu.last_game)
break
end
local gamespec, i = gamemgr.find_by_gameid(current_world.gameid)
if i ~= nil then
menu.last_game = i
engine.setting_set("main_menu_last_game_idx",menu.last_game)
end
end