diff --git a/miningTurtle.lua b/miningTurtle.lua index 53dca4f..0529c5a 100644 --- a/miningTurtle.lua +++ b/miningTurtle.lua @@ -163,6 +163,14 @@ local function dumpInventory() 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 end