Added check for nil items in parser filter function.
This commit is contained in:
parent
035c7a4a70
commit
6de1a7b361
|
@ -80,6 +80,7 @@ local function parseItemFilterExpression(expr)
|
|||
expr = "minecraft:" .. expr
|
||||
end
|
||||
return function(item)
|
||||
if item == nil then return false end
|
||||
local matches = stackMatches(item, expr, fuzzy)
|
||||
if negated then
|
||||
matches = not matches
|
||||
|
|
Loading…
Reference in New Issue