Fix weird edge case
This commit is contained in:
@@ -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 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))
|
w.join(item, cache(item, peripheral.wrap(conf.buffer_internal), BUFFER_IN_SLOT))
|
||||||
local space_locations = find_space(item) -- command contains item-related stuff
|
local space_locations = find_space(item) -- command contains item-related stuff
|
||||||
|
Reference in New Issue
Block a user