forked from mtcontrib/pipeworks
prevent crash if node being taken from has no inv
This commit is contained in:
parent
1273d82917
commit
3c20e91029
@ -56,6 +56,7 @@ end
|
|||||||
-- todo SOON: this function has *way too many* parameters
|
-- todo SOON: this function has *way too many* parameters
|
||||||
local function grabAndFire(data,slotseq_mode,exmatch_mode,filtmeta,frominv,frominvname,frompos,fromnode,filterfor,fromtube,fromdef,dir,fakePlayer,all,digiline)
|
local function grabAndFire(data,slotseq_mode,exmatch_mode,filtmeta,frominv,frominvname,frompos,fromnode,filterfor,fromtube,fromdef,dir,fakePlayer,all,digiline)
|
||||||
local sposes = {}
|
local sposes = {}
|
||||||
|
if not frominvname or not frominv:get_list(frominvname) then return end
|
||||||
for spos,stack in ipairs(frominv:get_list(frominvname)) do
|
for spos,stack in ipairs(frominv:get_list(frominvname)) do
|
||||||
local matches
|
local matches
|
||||||
if filterfor == "" then
|
if filterfor == "" then
|
||||||
|
Loading…
Reference in New Issue
Block a user