about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2023-02-17 02:15:45 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2023-02-17 02:15:49 +0100
commit034911aec4f2131546187a159982680ae88e36aa (patch)
tree31233d0d7c08ca24a1d5ba305974e2ed1fb7142e
parentBot: Send message to discord on goal_reached (diff)
download2bored2walk-034911aec4f2131546187a159982680ae88e36aa.tar.gz
2bored2walk-034911aec4f2131546187a159982680ae88e36aa.tar.bz2
2bored2walk-034911aec4f2131546187a159982680ae88e36aa.zip
Bot: Increase pathfinding think timeout to 20s
-rw-r--r--src/main.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.ts b/src/main.ts
index 2a9d3fb..4377726 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -68,6 +68,7 @@ bot.once('spawn', async () => {
 
   (bot as any).autoArmor.checkOnItemPickup = true;
 
+  (bot as any).pathfinder.thinkTimeout = 20000;
   (bot as any).pathfinder.setMovements(defaultMove);
   (bot as any).pathfinder.setGoal(goal);