From 1336590241ddf20115112fb1ccac0b9fb6e03858 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 22 Mar 2026 23:00:07 -0400 Subject: [PATCH] feat: notify manager to refresh cache after inventory dump --- miningTurtle.lua | 8 ++++++++ 1 file changed, 8 insertions(+) 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