From 149b1828142d0143aa74ad8ee6090f9c21de2bdd Mon Sep 17 00:00:00 2001 From: osmarks Date: Wed, 15 Aug 2018 17:47:53 +0100 Subject: [PATCH] Maybe necessary for some reason? --- IO.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IO.lua b/IO.lua index 2b44b71..a146be8 100644 --- a/IO.lua +++ b/IO.lua @@ -19,7 +19,7 @@ local function get_num_stacks(total_items) end while true do - local stacks_stored = d.map(chest.list(), w.to_wyvern_item) + local stacks_stored = d.map(d.filter(chest.list(), function(x) return x ~= nil end), w.to_wyvern_item) local items_stored = w.collate_stacks(stacks_stored) local function get_item_count(ii)