Skip to content

Commit 38d01d7

Browse files
authored
Merge pull request #97 from InvalidOS/patch-1
Fix SMODS XChips message crash
2 parents 7c674b5 + 624a0ef commit 38d01d7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lovely.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,6 +1408,15 @@ position = 'at'
14081408
payload = "text = localize{type='variable',key='a_xmult'..(to_big(amt)<to_big(0) and '_minus' or ''),vars={math.abs(amt)}}"
14091409
match_indent = true
14101410

1411+
[[patches]]
1412+
[patches.pattern]
1413+
target = "functions/common_events.lua"
1414+
pattern = "text = localize{type='variable',key='a_xchips'..(amt<0 and '_minus' or ''),vars={math.abs(amt)}}"
1415+
position = 'at'
1416+
payload = "text = localize{type='variable',key='a_xchips'..(to_big(amt)<to_big(0) and '_minus' or ''),vars={math.abs(amt)}}"
1417+
times = 1
1418+
match_indent = true
1419+
14111420
[[patches]]
14121421
[patches.regex]
14131422
target = '=[SMODS _ "src/utils.lua"]'

0 commit comments

Comments
 (0)