mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-21 21:52:07 +02:00
added pathfinder patch
This commit is contained in:
parent
1c75f4f688
commit
5c6de46882
1 changed files with 17 additions and 0 deletions
17
patches/mineflayer-pathfinder+2.4.5.patch
Normal file
17
patches/mineflayer-pathfinder+2.4.5.patch
Normal file
|
@ -0,0 +1,17 @@
|
|||
diff --git a/node_modules/mineflayer-pathfinder/lib/movements.js b/node_modules/mineflayer-pathfinder/lib/movements.js
|
||||
index a7e3505..77e428f 100644
|
||||
--- a/node_modules/mineflayer-pathfinder/lib/movements.js
|
||||
+++ b/node_modules/mineflayer-pathfinder/lib/movements.js
|
||||
@@ -143,7 +143,11 @@ class Movements {
|
||||
for (const id of this.scafoldingBlocks) {
|
||||
for (const j in items) {
|
||||
const item = items[j]
|
||||
- if (item.type === id) count += item.count
|
||||
+ if (item.type === id) {
|
||||
+ count += item.count
|
||||
+ if (this.bot.game.gameMode === 'creative')
|
||||
+ count = 1000
|
||||
+ }
|
||||
}
|
||||
}
|
||||
return count
|
Loading…
Add table
Reference in a new issue