mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-02-15 08:52:23 +01:00
Fix injector crash when dug or punched when its empty
This commit is contained in:
@ -78,7 +78,7 @@ local function grabAndFire(data,slotseq_mode,filtmeta,frominv,frominvname,frompo
|
|||||||
local count
|
local count
|
||||||
if all then
|
if all then
|
||||||
count = math.min(stack:get_count(), doRemove)
|
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)
|
count = math.min(filterfor.count, count)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user