summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filter-injector.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter-injector.lua b/filter-injector.lua
index 1f6a90a..4f4f7a1 100644
--- a/filter-injector.lua
+++ b/filter-injector.lua
@@ -219,7 +219,7 @@ local function punch_filter(data, filtpos, filtnode, msg)
local filters = {}
if data.digiline then
local function add_filter(name, group, count, wear, metadata)
- table.insert(filters, {name = name, group = group, count = count, wear = wear, metadata = metadata})
+ table.insert(filters, {name = name, group = group, count = tonumber(count), wear = wear, metadata = metadata})
end
local function add_itemstring_filter(filter)