fix digiline_filter crashing when getting a string as count (#196)

* fix digiline_filter crashing when getting a string as count

* move it to somewhere else

* 🐈
This commit is contained in:
DS 2017-09-26 05:21:49 +02:00 committed by Vanessa Ezekowitz
parent e8e9de04dd
commit 736d67784c

View File

@ -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)