From 3c20e910298bd7064eb8bd8a5ed0caaf5b20b6c4 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 23 Jun 2017 14:11:19 -0400 Subject: prevent crash if node being taken from has no inv --- filter-injector.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/filter-injector.lua b/filter-injector.lua index 4870501..45b27c4 100644 --- a/filter-injector.lua +++ b/filter-injector.lua @@ -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 -- cgit v1.2.3