Skip to content

Commit e8c91dd

Browse files
authored
???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
1 parent 417c95d commit e8c91dd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/misc.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,7 @@ function cry_pls(str, vars)
190190
table.insert(_table, v)
191191
end
192192
end
193-
if not vars then
194-
num = 1 -- Hopefully prevents a crash if no level data
195-
else
196-
local num = vars[tonumber(string.match(str, ">(%d+)"))] -- gets the number outside angle brackets, and its corresponding variable
197-
end
193+
local num = vars and vars[tonumber(string.match(str, ">(%d+)"))] or 1 -- gets the number outside angle brackets, and its corresponding variable
198194
local plural = _table[1] -- default
199195
local checks = { [1] = "=" }
200196
if #_table > 1 then

0 commit comments

Comments
 (0)