feat: notify manager to refresh cache after inventory dump
This commit is contained in:
@@ -163,6 +163,14 @@ local function dumpInventory()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Notify manager to refresh its cache so counts update immediately
|
||||||
|
if totalPushed > 0 then
|
||||||
|
pcall(function()
|
||||||
|
modem.transmit(ORDER_CHANNEL, ORDER_CHANNEL, { type = "scan" })
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
return totalPushed
|
return totalPushed
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user