Skip to content

Commit

Permalink
Merge pull request #374 from larswijn/refactor-modicon-patch
Browse files Browse the repository at this point in the history
refactor branch: hacky hack to stop modicon crash
  • Loading branch information
Jevonnissocoolman authored Jan 31, 2025
2 parents 64aa2a0 + e6e944a commit 28ed786
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/gameset.lua
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,11 @@ function cry_get_gameset(card, center)
if not center.key then
if center.tag and center.tag.key then --dumb fix for tags
center = center.tag
elseif card.atlas and (
card.atlas.original_key == "modicon" or
card.atlas.original_key == "mod_tags" or
card.atlas.name == "tags") then -- dumber fix for modicons
return G.PROFILES[G.SETTINGS.profile].cry_gameset or "mainline"
else
error("Could not find key for center: " .. tprint(center))
end
Expand Down

0 comments on commit 28ed786

Please sign in to comment.