diff options
| author | est31 <MTest31@outlook.com> | 2015-02-04 03:08:16 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2015-02-04 03:08:16 +0100 |
| commit | 50bc3518047ac41b18ba78b1cde25a35167a69b5 (patch) | |
| tree | 8ba0ce8dd76e2914dbfffe14505b70428e2a4101 | |
| parent | 8e9affc841412fffef35e2396566334ae3e6b091 (diff) | |
Fix injector crash when dug or punched when its empty
| -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 |
