From 9fa52dce96e41ae8c7638bebed2bb74b3260cd9d Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Wed, 21 Dec 2022 14:32:28 +0100 Subject: [PATCH] Fixed convertToFilter. --- src/itemscript.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/itemscript.lua b/src/itemscript.lua index 5e9c57d..febd4e0 100644 --- a/src/itemscript.lua +++ b/src/itemscript.lua @@ -106,11 +106,11 @@ local function convertToFilter(var) if type(var) == "table" and #var > 0 and type(var[1]) == "string" then local filters = {} for _, expr in pairs(var) do - table.insert(filters, parseFilterExpression(expr)) + table.insert(filters, parseItemFilterExpression(expr)) end return orFilter(filters) elseif type(var) == "string" then - return parseFilterExpression(var) + return parseItemFilterExpression(var) elseif type(var) == "function" then return var else