mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-03-28 14:56:24 +01:00
21 lines
1 KiB
Diff
21 lines
1 KiB
Diff
diff --git a/node_modules/mineflayer-pathfinder/index.js b/node_modules/mineflayer-pathfinder/index.js
|
|
index b38bd30..cfaa677 100644
|
|
--- a/node_modules/mineflayer-pathfinder/index.js
|
|
+++ b/node_modules/mineflayer-pathfinder/index.js
|
|
@@ -541,7 +541,7 @@ function inject (bot) {
|
|
let canPlace = true
|
|
if (placingBlock.jump) {
|
|
bot.setControlState('jump', true)
|
|
- canPlace = placingBlock.y + 1 < bot.entity.position.y
|
|
+ canPlace = placingBlock.y + 1.8 < bot.entity.position.y
|
|
}
|
|
if (canPlace) {
|
|
if (!lockEquipItem.tryAcquire()) return
|
|
@@ -557,6 +557,7 @@ function inject (bot) {
|
|
.then(function () {
|
|
// Dont release Sneak if the block placement was not successful
|
|
bot.setControlState('sneak', false)
|
|
+ bot.setControlState('jump', false)
|
|
if (bot.pathfinder.LOSWhenPlacingBlocks && placingBlock.returnPos) returningPos = placingBlock.returnPos.clone()
|
|
})
|
|
.catch(_ignoreError => {
|