prevent crash if node being taken from has no inv

This commit is contained in:
Vanessa Ezekowitz 2017-06-23 14:11:19 -04:00
parent 1273d82917
commit 3c20e91029

View File

@ -56,6 +56,7 @@ end
-- 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 sposes = {}
if not frominvname or not frominv:get_list(frominvname) then return end
for spos,stack in ipairs(frominv:get_list(frominvname)) do
local matches
if filterfor == "" then