From 5be4a63b6bc6236155c98d83cd4a211e85a8b239 Mon Sep 17 00:00:00 2001 From: osmarks Date: Thu, 16 Aug 2018 08:47:13 +0100 Subject: [PATCH] aaa --- backend-chests.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend-chests.lua b/backend-chests.lua index 6639a77..a868c29 100644 --- a/backend-chests.lua +++ b/backend-chests.lua @@ -189,11 +189,9 @@ local function server(command) if command.from_inventory and command.from_slot then peripheral.call(conf.buffer_external, "pullItems", command.from_inventory, command.from_slot, command.quantity, BUFFER_IN_SLOT) -- pull from from_inventory to buffer end - - local quantity = peripheral.call(conf.buffer_external, "pullItems", conf.buffer_external, BUFFER_IN_SLOT, 64, BUFFER_IN_SLOT) -- send to itself to get stack size local raw_item = peripheral.call(conf.buffer_internal, "getItemMeta", BUFFER_IN_SLOT) - if not raw_item or quantity == 0 then return end + if not raw_item then return end local item = w.to_wyvern_item(raw_item) w.join(item, cache(item, peripheral.wrap(conf.buffer_internal), BUFFER_IN_SLOT))