Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Update src/main/java/keystrokesmod/utility/render/ColorUtils.java
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
TejasLamba2006 and coderabbitai[bot] authored Jul 18, 2024
1 parent ac8d071 commit ded0f47
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/main/java/keystrokesmod/utility/render/ColorUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,14 @@ public static Color getFontColor(int id, int alpha) {
}

private static Color getRawFontColor(int id) {
Color color = new Color(255, 0, 0);

if (id == 1) {
color = new Color(255, 255, 255);
} else if (id == 2) {
color = new Color(173, 173, 173);
switch (id) {
case 1:
return new Color(255, 255, 255);
case 2:
return new Color(173, 173, 173);
default:
return new Color(255, 0, 0);
}

return color;
}

public static Color getFontColor(int id) {
Expand Down

0 comments on commit ded0f47

Please sign in to comment.