PLEASE I NEED SLEEP
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m0s

This commit is contained in:
Jess H 2024-06-15 01:14:56 +01:00
parent 8bd5220423
commit db18b1a84f
Signed by: UnixSystemV
GPG key ID: 9B21C50B68D67F19
2 changed files with 1 additions and 3 deletions

View file

@ -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();
}

View file

@ -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;
}