diff options
author | DS <vorunbekannt75@web.de> | 2017-09-26 05:21:49 +0200 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-09-25 23:21:49 -0400 |
commit | 736d67784ce8acfaa3081723f92d340c87f0e461 (patch) | |
tree | 8538e2f3401c5e313063ea02055042e53b4f930e | |
parent | e8e9de04dd27547f527abbac4f87c7dc658a0f44 (diff) |
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
* :cat2:
-rw-r--r-- | filter-injector.lua | 2 |
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) |