1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Give subgames the ability to disallow specific mapgens (#6792)

This commit is contained in:
Ezhh 2017-12-16 16:02:08 +00:00 committed by SmallJoker
parent 770eb09adc
commit 649eef9e4f
3 changed files with 47 additions and 15 deletions

View file

@ -551,7 +551,7 @@ end
--------------------------------------------------------------------------------
if INIT == "mainmenu" then
function core.get_game(index)
local games = game.get_games()
local games = core.get_games()
if index > 0 and index <= #games then
return games[index]