Skip to content

Commit

Permalink
Merge pull request #256 from WilsontheWolf/debug-unlock-crash
Browse files Browse the repository at this point in the history
fix: crash when unlocking/discovering blind... again
  • Loading branch information
Aurelius7309 committed Sep 6, 2024
2 parents 5c9866f + 5edaaf4 commit 46dda80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/overrides.lua
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ function G.FUNCS.your_collection_blinds_page(args)
card.children.center = temp_blind
temp_blind:set_role({major = card, role_type = 'Glued', draw_major = card})
card.set_sprites = function(...)
local args = {...}
if not args[1].animation then return end -- fix for debug unlock
local c = card.children.center
Card.set_sprites(...)
card.children.center = c
Expand Down

0 comments on commit 46dda80

Please sign in to comment.