mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-13 10:45:34 +02: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
|
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
|
--- a/node_modules/mineflayer/lib/plugins/place_block.js
|
||||||
+++ b/node_modules/mineflayer/lib/plugins/place_block.js
|
+++ b/node_modules/mineflayer/lib/plugins/place_block.js
|
||||||
@@ -6,12 +6,13 @@ function inject (bot) {
|
@@ -11,7 +11,7 @@ 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)
|
|
||||||
|
|
||||||
let newBlock = bot.blockAt(dest)
|
let newBlock = bot.blockAt(dest)
|
||||||
if (oldBlock.type === newBlock.type) {
|
if (oldBlock.type === newBlock.type) {
|
||||||
[oldBlock, newBlock] = await onceWithCleanup(bot, `blockUpdate:${dest}`, {
|
[oldBlock, newBlock] = await onceWithCleanup(bot, `blockUpdate:${dest}`, {
|
Loading…
Add table
Reference in a new issue