Fixed nil argument.

This commit is contained in:
Harrison Deng 2021-05-07 18:03:20 -05:00
parent d1a0560446
commit 433203f490

View File

@ -143,7 +143,7 @@ local function attemptBreak(breakf, inspectf, notPattern)
return false
end
print("Block found: " .. data.name)
if string.match(data.name, pattern) then
if string.match(data.name, notPattern) then
return false
end
breakf()