We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 417c95d commit e8c91ddCopy full SHA for e8c91dd
lib/misc.lua
@@ -190,11 +190,7 @@ function cry_pls(str, vars)
190
table.insert(_table, v)
191
end
192
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
+ local num = vars and vars[tonumber(string.match(str, ">(%d+)"))] or 1 -- gets the number outside angle brackets, and its corresponding variable
198
local plural = _table[1] -- default
199
local checks = { [1] = "=" }
200
if #_table > 1 then
0 commit comments