mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-29 00:57:29 +01:00
fix missing check for pipeworks.enable_item_tags
fixes #117 closes #121
This commit is contained in:
parent
1b79084e6b
commit
21dbae9962
@ -201,11 +201,13 @@ local function punch_filter(data, filtpos, filtnode, msg)
|
|||||||
set_filter_formspec(data, filtmeta)
|
set_filter_formspec(data, filtmeta)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if pipeworks.enable_item_tags then
|
||||||
if type(msg.tags) == "table" or type(msg.tags) == "string" then
|
if type(msg.tags) == "table" or type(msg.tags) == "string" then
|
||||||
item_tags = pipeworks.sanitize_tags(msg.tags)
|
item_tags = pipeworks.sanitize_tags(msg.tags)
|
||||||
elseif type(msg.tag) == "string" then
|
elseif type(msg.tag) == "string" then
|
||||||
item_tags = pipeworks.sanitize_tags({msg.tag})
|
item_tags = pipeworks.sanitize_tags({msg.tag})
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if msg.nofire then
|
if msg.nofire then
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user