diff --git a/package.json b/package.json index e7699a0..ee33776 100644 --- a/package.json +++ b/package.json @@ -11,5 +11,8 @@ "openai": "^4.4.0", "patch-package": "^8.0.0", "yargs": "^17.7.2" + }, + "scripts": { + "postinstall": "patch-package" } } diff --git a/patches/mineflayer+4.14.0.patch b/patches/mineflayer+4.14.0.patch index 517c55e..3a36ebb 100644 --- a/patches/mineflayer+4.14.0.patch +++ b/patches/mineflayer+4.14.0.patch @@ -13,7 +13,7 @@ index fdaec6b..e471e70 100644 if (oldBlock.type === newBlock.type) { [oldBlock, newBlock] = await onceWithCleanup(bot, `blockUpdate:${dest}`, { - 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 // oldBlock and newBlock will both be null when the world unloads checkCondition: (oldBlock, newBlock) => !oldBlock || !newBlock || oldBlock.type !== newBlock.type