Skip to content

Commit 8ad6da9

Browse files
authored
fix: crash with attention_text with text as table (#1140)
1 parent 89685fe commit 8ad6da9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lovely/calc_returns.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ priority = -10
88
[patches.pattern]
99
target = 'functions/UI_definitions.lua'
1010
match_indent = true
11-
position = 'at'
11+
position = 'before'
1212
pattern = '''
1313
{n=G.UIT.O, config={draw_layer = 1, object = DynaText({scale = args.scale, string = args.text, maxw = args.maxw, colours = {args.colour},float = true, shadow = true, silent = not args.noisy, args.scale, pop_in = 0, pop_in_rate = 6, rotate = args.rotate or nil})}},
1414
'''
1515
payload = '''
16-
type(args.text) == 'string' and {n=G.UIT.O, config={draw_layer = 1, object = DynaText({scale = args.scale, string = args.text, maxw = args.maxw, colours = {args.colour},float = true, shadow = true, silent = not args.noisy, args.scale, pop_in = 0, pop_in_rate = 6, rotate = args.rotate or nil})}} or
17-
args.text,
16+
type(args.text) == "table" and args.text.n and args.text or
1817
'''
1918
[[patches]]
2019
[patches.pattern]

0 commit comments

Comments
 (0)