Removed unwanted debug logging

Fixed percentage color not getting applied correctly
This commit is contained in:
Elias Müller 2023-10-24 21:22:01 +02:00
parent bb54482b5e
commit b1097b747d
2 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,6 @@ public class ColorUtil {
hue = Math.abs(hue - 120);
}
System.out.println("hue " + hue);
return TextColor.color(Color.getHSBColor(hue/360, 1f, 1f).getRGB());
}
}

View File

@ -46,7 +46,7 @@ public class ComponentUtil {
int percentage = (int) (Math.min(100, (mspt / 50.0) * 100));
TextColor msptColor = ColorUtil.mapGreenToRed(roundedMspt, 0, 50, true);
TextColor percentageColor = ColorUtil.mapGreenToRed(mspt, 90, 100, true);
TextColor percentageColor = ColorUtil.mapGreenToRed(percentage, 80, 100, true);
return Component.text()
.append(Component.text("Serverlast: ", NamedTextColor.GRAY))