made placeblock pathfinder better?

This commit is contained in:
MaxRobinsonTheGreat 2024-01-23 17:58:49 -06:00
parent d671c7a7dc
commit 9329510c51
2 changed files with 4 additions and 1 deletions

View file

@ -11,5 +11,8 @@
"openai": "^4.4.0", "openai": "^4.4.0",
"patch-package": "^8.0.0", "patch-package": "^8.0.0",
"yargs": "^17.7.2" "yargs": "^17.7.2"
},
"scripts": {
"postinstall": "patch-package"
} }
} }

View file

@ -13,7 +13,7 @@ index fdaec6b..e471e70 100644
if (oldBlock.type === newBlock.type) { if (oldBlock.type === newBlock.type) {
[oldBlock, newBlock] = await onceWithCleanup(bot, `blockUpdate:${dest}`, { [oldBlock, newBlock] = await onceWithCleanup(bot, `blockUpdate:${dest}`, {
- timeout: 5000, - timeout: 5000,
+ timeout: 300, + timeout: 500,
// Condition to wait to receive block update actually changing the block type, in case the bot receives block updates with no changes // Condition to wait to receive block update actually changing the block type, in case the bot receives block updates with no changes
// oldBlock and newBlock will both be null when the world unloads // oldBlock and newBlock will both be null when the world unloads
checkCondition: (oldBlock, newBlock) => !oldBlock || !newBlock || oldBlock.type !== newBlock.type checkCondition: (oldBlock, newBlock) => !oldBlock || !newBlock || oldBlock.type !== newBlock.type