Mostly works
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user