diff options
-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 650a59a..14e23a8 100644 --- a/filter-injector.lua +++ b/filter-injector.lua @@ -78,7 +78,7 @@ local function grabAndFire(data,slotseq_mode,filtmeta,frominv,frominvname,frompo local count if all then count = math.min(stack:get_count(), doRemove) - if filterfor.count > 1 then + if filterfor.count and filterfor.count > 1 then count = math.min(filterfor.count, count) end else |