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.
2 parents 314a3f5 + b8184c7 commit d97e815Copy full SHA for d97e815
lib/misc.lua
@@ -190,7 +190,11 @@ function cry_pls(str, vars)
190
table.insert(_table, v)
191
end
192
193
- local num = vars[tonumber(string.match(str, ">(%d+)"))] -- gets the number outside angle brackets, and its corresponding variable
+ 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
198
local plural = _table[1] -- default
199
local checks = { [1] = "=" }
200
if #_table > 1 then
0 commit comments