milo: single wired modem only

This commit is contained in:
kepler155c@gmail.com
2018-12-05 21:20:50 -05:00
parent f209719c9d
commit 11c4670213
2 changed files with 11 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ local function client(socket)
if node then
local slot = node.adapter.getItemMeta(slotNo)
if slot then
if context.storage:import(node, slotNo, slot.count, slot) then
if context.storage:import(node, slotNo, slot.count, slot) > 0 then
local item = Milo:getItem(Milo:listItems(), slot)
if item then
socket:write({