Skip to content

Commit 2324533

Browse files
authored
menu_cards fixes (#1185)
1 parent 1568898 commit 2324533

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function Game:main_menu(change_context)
9999
local remove_original = false
100100
for i, v in pairs(SMODS.Mods) do
101101
if not v.disabled and v.menu_cards then
102-
local tbl = v.menu_cards()
102+
local tbl = v.menu_cards() or {}
103103
if tbl.func then funcs[#funcs + 1] = tbl.func end
104104
if tbl.remove_original then remove_original = true end
105105
if tbl.set or tbl.key then tbl = { tbl } end
@@ -134,7 +134,7 @@ function Game:main_menu(change_context)
134134

135135
G.E_MANAGER:add_event(Event({
136136
trigger = "after",
137-
delay = 0,
137+
delay = change_context == 'game' and 1.5 or 0,
138138
blockable = false,
139139
blocking = false,
140140
func = function()

0 commit comments

Comments
 (0)