From 21dbae9962d728637add4fdea05916e4e9b51ebe Mon Sep 17 00:00:00 2001 From: OgelGames Date: Sat, 30 Mar 2024 15:55:35 +1100 Subject: [PATCH] fix missing check for `pipeworks.enable_item_tags` fixes #117 closes #121 --- filter-injector.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/filter-injector.lua b/filter-injector.lua index e605c9e..21b3aca 100644 --- a/filter-injector.lua +++ b/filter-injector.lua @@ -201,10 +201,12 @@ local function punch_filter(data, filtpos, filtnode, msg) set_filter_formspec(data, filtmeta) end - if type(msg.tags) == "table" or type(msg.tags) == "string" then - item_tags = pipeworks.sanitize_tags(msg.tags) - elseif type(msg.tag) == "string" then - item_tags = pipeworks.sanitize_tags({msg.tag}) + if pipeworks.enable_item_tags then + if type(msg.tags) == "table" or type(msg.tags) == "string" then + item_tags = pipeworks.sanitize_tags(msg.tags) + elseif type(msg.tag) == "string" then + item_tags = pipeworks.sanitize_tags({msg.tag}) + end end if msg.nofire then