summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-02-04 03:08:16 +0100
committerest31 <MTest31@outlook.com>2015-02-04 03:08:16 +0100
commit50bc3518047ac41b18ba78b1cde25a35167a69b5 (patch)
tree8ba0ce8dd76e2914dbfffe14505b70428e2a4101
parent8e9affc841412fffef35e2396566334ae3e6b091 (diff)
downloadpipeworks-50bc3518047ac41b18ba78b1cde25a35167a69b5.tar
pipeworks-50bc3518047ac41b18ba78b1cde25a35167a69b5.tar.gz
pipeworks-50bc3518047ac41b18ba78b1cde25a35167a69b5.tar.bz2
pipeworks-50bc3518047ac41b18ba78b1cde25a35167a69b5.tar.xz
pipeworks-50bc3518047ac41b18ba78b1cde25a35167a69b5.zip
Fix injector crash when dug or punched when its empty
-rw-r--r--filter-injector.lua2
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