Fix injector crash when dug or punched when its empty

This commit is contained in:
est31 2015-02-04 03:08:16 +01:00
parent 8e9affc841
commit 50bc351804

View File

@ -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