Skip to content

Commit 16557e5

Browse files
committed
nil check when calculation excavation
1 parent 0e8cf6d commit 16557e5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

JoyousSpring.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"main_file": "JoyousSpring.lua",
99
"priority": 0,
1010
"badge_colour": "F4A6C7",
11-
"version": "0.8.5.3",
11+
"version": "0.8.5.4",
1212
"dependencies": ["Steamodded (>=1.0.0~BETA-0827b)", "Lovely (>=0.8.0)"]
1313
}

src/effects.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ JoyousSpring.excavate = function(amount, context)
544544
end
545545

546546
JoyousSpring.calculate_excavate = function(context)
547+
if not G.jokers or not G.jokers.cards then return end
547548
local maxlimit = 0
548549
for _, joker in ipairs(G.jokers.cards) do
549550
if not joker.debuff and joker.config.center.joy_calculate_excavate then

0 commit comments

Comments
 (0)