fixed patches

This commit is contained in:
MaxRobinsonTheGreat 2024-08-24 13:22:36 -05:00
parent 10cdee11a1
commit 7a0dc07fa8

View file

@ -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}`, {