From 5c6de46882b9f20808313cc1f3f736c6421bb5e2 Mon Sep 17 00:00:00 2001 From: MaxRobinsonTheGreat Date: Tue, 14 May 2024 21:05:09 -0500 Subject: [PATCH] added pathfinder patch --- patches/mineflayer-pathfinder+2.4.5.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 patches/mineflayer-pathfinder+2.4.5.patch diff --git a/patches/mineflayer-pathfinder+2.4.5.patch b/patches/mineflayer-pathfinder+2.4.5.patch new file mode 100644 index 0000000..2b268d5 --- /dev/null +++ b/patches/mineflayer-pathfinder+2.4.5.patch @@ -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 \ No newline at end of file