From a9530d88df6f52bdd2be802c7abfdb452c07b994 Mon Sep 17 00:00:00 2001 From: osmarks Date: Wed, 15 Aug 2018 07:25:46 +0100 Subject: [PATCH] oopzl --- backend-chests.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend-chests.lua b/backend-chests.lua index c25e5cf..77094d8 100644 --- a/backend-chests.lua +++ b/backend-chests.lua @@ -142,7 +142,7 @@ local function server(command) table.insert(stacks, stack_to_pull) items_moved_from_storage = items_moved_from_storage + fetch_by_location(stack_to_pull.location, command.quantity) - os.queueEvent("reindex", first_available.location.inventory) -- I'm too lazy to manually update the item properly, and indexing is fast enough, so just do this + os.queueEvent("reindex", stack_to_pull.location.inventory) -- I'm too lazy to manually update the item properly, and indexing is fast enough, so just do this until items_moved_from_storage >= quantity_to_fetch_remaining if command.destination_inventory then