From 1cf4c9419f06512cf5c9a736a667e6d32a59b3c0 Mon Sep 17 00:00:00 2001 From: Brady Date: Mon, 24 Sep 2018 14:17:02 -0500 Subject: [PATCH] Add setting for goal box color --- src/api/java/baritone/api/Settings.java | 5 +++++ src/main/java/baritone/behavior/PathingBehavior.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/api/java/baritone/api/Settings.java b/src/api/java/baritone/api/Settings.java index e6238db4..ab758f40 100644 --- a/src/api/java/baritone/api/Settings.java +++ b/src/api/java/baritone/api/Settings.java @@ -434,6 +434,11 @@ public class Settings { */ public Setting colorMostRecentConsidered = new Setting<>(Color.CYAN); + /** + * The color of the goal box + */ + public Setting colorGoalBox = new Setting<>(Color.GREEN); + public final Map> byLowerName; public final List> allSettings; diff --git a/src/main/java/baritone/behavior/PathingBehavior.java b/src/main/java/baritone/behavior/PathingBehavior.java index 9848bb6d..a13d1015 100644 --- a/src/main/java/baritone/behavior/PathingBehavior.java +++ b/src/main/java/baritone/behavior/PathingBehavior.java @@ -385,7 +385,7 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior, // System.out.println(event.getPartialTicks()); float partialTicks = event.getPartialTicks(); if (goal != null && Baritone.settings().renderGoal.value) { - PathRenderer.drawLitDankGoalBox(player(), goal, partialTicks, Color.GREEN); + PathRenderer.drawLitDankGoalBox(player(), goal, partialTicks, Baritone.settings().colorGoalBox.get()); } if (!Baritone.settings().renderPath.get()) { return;