mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-18 13:15:39 +02:00
made placeblock pathfinder better?
This commit is contained in:
parent
d671c7a7dc
commit
9329510c51
2 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue