diff --git a/src/itemscript.lua b/src/itemscript.lua index 0927cd3..545fdb7 100644 --- a/src/itemscript.lua +++ b/src/itemscript.lua @@ -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