Removed unwanted debug logging
Fixed percentage color not getting applied correctly
This commit is contained in:
parent
bb54482b5e
commit
b1097b747d
@ -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());
|
||||
}
|
||||
}
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user