Skip to content

Commit

Permalink
remove this check because it causes softlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Toneblock authored Dec 29, 2024
1 parent cca1db8 commit cff47f3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lovely/fixes.toml
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,16 @@ if G.pack_cards and (not (G.GAME.STOP_USE and G.GAME.STOP_USE > 0)) and
'''
match_indent = true

# Due to STOP_USE being used we can remove this dumb check
# could probably remove the rest of it since it serves no purpose otherwise, but whatever
[[patches]]
[patches.regex]
target = "functions/button_callbacks.lua"
pattern = '''and \(G\.hand\.cards\[1\] or \(G\.hand\.config\.card_limit <= 0\)\)'''
position = "at"
payload = ''' '''
match_indent = true

# Fixes Steam API not loading on unix
[[patches]]
[patches.pattern]
Expand Down Expand Up @@ -648,4 +658,4 @@ position = "at"
payload = """local success, _st = pcall(require, 'luasteam')
if success then st = _st end"""
overwrite = true
match_indent = true
match_indent = true

0 comments on commit cff47f3

Please sign in to comment.