Fix weird edge case

This commit is contained in:
osmarks 2018-08-16 08:39:40 +01:00
parent 27df873112
commit e54f87e536
1 changed files with 3 additions and 1 deletions

View File

@ -192,7 +192,9 @@ local function server(command)
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 item = w.to_wyvern_item(peripheral.call(conf.buffer_internal, "getItemMeta", BUFFER_IN_SLOT))
local raw_item = peripheral.call(conf.buffer_internal, "getItemMeta", BUFFER_IN_SLOT)
if not raw_item or quantity == 0 then return end
local item = w.to_wyvern_item(raw_item)
w.join(item, cache(item, peripheral.wrap(conf.buffer_internal), BUFFER_IN_SLOT))
local space_locations = find_space(item) -- command contains item-related stuff