From 7a0dc07fa8791de02416b6f97ae8f03f93b51626 Mon Sep 17 00:00:00 2001 From: MaxRobinsonTheGreat Date: Sat, 24 Aug 2024 13:22:36 -0500 Subject: [PATCH] fixed patches --- ...mineflayer+4.14.0.patch => mineflayer+4.20.1.patch} | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) rename patches/{mineflayer+4.14.0.patch => mineflayer+4.20.1.patch} (68%) diff --git a/patches/mineflayer+4.14.0.patch b/patches/mineflayer+4.20.1.patch similarity index 68% rename from patches/mineflayer+4.14.0.patch rename to patches/mineflayer+4.20.1.patch index 3a36ebb..8cf633b 100644 --- a/patches/mineflayer+4.14.0.patch +++ b/patches/mineflayer+4.20.1.patch @@ -1,14 +1,8 @@ diff --git a/node_modules/mineflayer/lib/plugins/place_block.js b/node_modules/mineflayer/lib/plugins/place_block.js -index fdaec6b..e471e70 100644 +index fdaec6b..08983b6 100644 --- a/node_modules/mineflayer/lib/plugins/place_block.js +++ b/node_modules/mineflayer/lib/plugins/place_block.js -@@ -6,12 +6,13 @@ function inject (bot) { - async function placeBlockWithOptions (referenceBlock, faceVector, options) { - const dest = referenceBlock.position.plus(faceVector) - let oldBlock = bot.blockAt(dest) -+ await bot.lookAt(dest) - await bot._genericPlace(referenceBlock, faceVector, options) - +@@ -11,7 +11,7 @@ function inject (bot) { let newBlock = bot.blockAt(dest) if (oldBlock.type === newBlock.type) { [oldBlock, newBlock] = await onceWithCleanup(bot, `blockUpdate:${dest}`, {