mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-08 08:23:59 +01:00
Fix injector crash when dug or punched when its empty
This commit is contained in:
parent
8e9affc841
commit
50bc351804
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user