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)