Skip to content

Commit aa15233

Browse files
committed
fix declare related crash
1 parent b27b5be commit aa15233

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

lovely/code.toml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,6 @@ payload = '''
771771
'''
772772
match_indent = true
773773

774-
775-
776774
[[patches]]
777775
[patches.pattern]
778776
target = '''=[SMODS _ "src/overrides.lua"]'''
@@ -785,3 +783,14 @@ for k, v in pairs(SMODS.PokerHands[key] or {}) do
785783
'''
786784
match_indent = true
787785

786+
[[patches]]
787+
[patches.pattern]
788+
target = 'functions/common_events.lua'
789+
pattern = '''
790+
if G.GAME.hands[h].played > 0 then
791+
'''
792+
position = "at"
793+
payload = '''
794+
if (G.GAME.hands[h].played or 0) > 0 then
795+
'''
796+
match_indent = true

0 commit comments

Comments
 (0)