Slight backend optimization

This commit is contained in:
osmarks 2018-08-13 09:07:21 +01:00
parent 34df37dfbe
commit 7b8e623144

View File

@ -163,8 +163,7 @@ local function server(command)
local moved = peripheral.call(conf.buffer_internal, "pushItems", inventory_with_space, BUFFER_IN_SLOT) -- push from buffer to free space
if moved == 0 then clear_buffer() end -- if for some reason it broke and there's no space, clear out buffer
os.queueEvent("reindex", inventory_with_space)
if moved > 0 then os.queueEvent("reindex", inventory_with_space) end -- only reindex if items were moved
return { moved = moved }
elseif command.type == "search" then