summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-06-23 14:11:19 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-06-23 14:11:19 -0400
commit3c20e910298bd7064eb8bd8a5ed0caaf5b20b6c4 (patch)
tree85d01661d39b22640a058036a9472a98d648e57b
parent1273d829179174c6635b48d975225fca4ef6449b (diff)
downloadpipeworks-3c20e910298bd7064eb8bd8a5ed0caaf5b20b6c4.tar
pipeworks-3c20e910298bd7064eb8bd8a5ed0caaf5b20b6c4.tar.gz
pipeworks-3c20e910298bd7064eb8bd8a5ed0caaf5b20b6c4.tar.bz2
pipeworks-3c20e910298bd7064eb8bd8a5ed0caaf5b20b6c4.tar.xz
pipeworks-3c20e910298bd7064eb8bd8a5ed0caaf5b20b6c4.zip
prevent crash if node being taken from has no inv
-rw-r--r--filter-injector.lua1
1 files changed, 1 insertions, 0 deletions
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