From db18b1a84f57e8d995c167ff563f48bdc675bffd Mon Sep 17 00:00:00 2001 From: Jess Date: Sat, 15 Jun 2024 01:14:56 +0100 Subject: [PATCH] PLEASE I NEED SLEEP --- .../src/main/java/de/com/baseband/client/feature/Feature.java | 2 -- .../main/java/de/com/baseband/client/feature/render/HUD.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Client/src/main/java/de/com/baseband/client/feature/Feature.java b/Client/src/main/java/de/com/baseband/client/feature/Feature.java index 867cfff..db450b1 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/Feature.java +++ b/Client/src/main/java/de/com/baseband/client/feature/Feature.java @@ -72,8 +72,6 @@ public abstract class Feature extends ToggleButton implements SetCommand { public abstract String toString(); - public final int color = getHashColor(); - public int getHashColor() { return Color.decode("#"+ Hasher.sha256hex(getIDName()).substring(0,6)).getRGB(); } diff --git a/Client/src/main/java/de/com/baseband/client/feature/render/HUD.java b/Client/src/main/java/de/com/baseband/client/feature/render/HUD.java index e1bf86a..ade6cfe 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/render/HUD.java +++ b/Client/src/main/java/de/com/baseband/client/feature/render/HUD.java @@ -237,7 +237,7 @@ public class HUD extends Feature { TextSplitter.drawString(initString, 3,3, theme.getGreenColor(), textShadow, false); int y = 3 + TextSplitter.getStringHeight(initString); for (Feature f : renderFeatures) { - mc.fontRenderer.drawString(f.text, 3, y, hashColor ? f.color : theme.getGreenColor(), textShadow); + mc.fontRenderer.drawString(f.text, 3, y, hashColor ? f.getHashColor() : theme.getGreenColor(), textShadow); y = y + mc.fontRenderer.FONT_HEIGHT; }