Mostly works

This commit is contained in:
2026-05-03 11:13:06 -04:00
parent 6f4519894b
commit 60663b8d4a
21 changed files with 3188 additions and 1706 deletions
+6 -2
View File
@@ -193,7 +193,7 @@ class Scanner {
}
}
async scanAllChests(bot, database) {
async scanAllChests(bot, database, interruptCheck) {
const chests = await database.getChests();
console.log(`Scanner: Scanning all ${chests.length} tracked chests`);
@@ -246,7 +246,11 @@ class Scanner {
}
// Wait for anti-ESP to reveal nearby blocks after arriving
await sleep(250);
if (interruptCheck && interruptCheck()) {
console.log(`Scanner: Interrupted after ${scannedCount} chests`);
return totalShulkers;
}
await sleep(250);
// Discover any new chests now visible from this position (every 5th stop or first)
if (scannedCount % 5 === 0) {