milo: fix cached transfer locations not getting uncached

This commit is contained in:
kepler155c@gmail.com
2019-03-24 12:30:36 -04:00
parent 1961882327
commit a4162e546b
2 changed files with 15 additions and 10 deletions

View File

@@ -99,6 +99,9 @@ local function client(socket)
if context.storage:import(node, data.slot, slot.count, slot) > 0 then
local item = Milo:getItem(slot)
if item then
-- TODO: This generates multile messages for the same item
-- use a callback system using a UID for the message
socket:write({
type = 'received',
key = item.key,