From 101f7cb7e22cc96e3023af8416344e335a23c9d1 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Wed, 5 Dec 2018 10:22:18 -0800 Subject: [PATCH] move heuristic up to exactly equal SPRINT_ONE_BLOCK_COST --- src/api/java/baritone/api/Settings.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/java/baritone/api/Settings.java b/src/api/java/baritone/api/Settings.java index f186f51b..e909c135 100644 --- a/src/api/java/baritone/api/Settings.java +++ b/src/api/java/baritone/api/Settings.java @@ -141,8 +141,10 @@ public class Settings { * metric gets better and better with each block, instead of slightly worse. *

* Finding the optimal path is worth it, so it's the default. + *

+ * This value is an expression instead of a literal so that it's exactly equal to SPRINT_ONE_BLOCK_COST defined in ActionCosts.java */ - public Setting costHeuristic = new Setting<>(3.5D); + public Setting costHeuristic = new Setting<>(20 / 5.612); // a bunch of obscure internal A* settings that you probably don't want to change /**