mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-08 08:23:59 +01:00
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:
parent
e8e9de04dd
commit
736d67784c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user