mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-03-28 14:56:24 +01:00
fixed patches
This commit is contained in:
parent
10cdee11a1
commit
7a0dc07fa8
1 changed files with 2 additions and 8 deletions
|
@ -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}`, {
|
Loading…
Add table
Reference in a new issue