Make alpha 1 if team exists but does not have a color

This commit is contained in:
Kneelawk 2024-03-04 18:31:50 -08:00
parent b477ef0f65
commit 5399b0fc50
Failed to generate hash of commit

View file

@ -77,13 +77,13 @@ public class PlayerUniforms implements UniformProvider {
int red = 255, green = 255, blue = 255, alpha = 0;
PlayerTeam team = info.getTeam();
if (team != null) {
alpha = 255;
Integer color = team.getColor().getColor();
if (color != null) {
int icolor = color;
red = FastColor.ARGB32.red(icolor);
green = FastColor.ARGB32.green(icolor);
blue = FastColor.ARGB32.blue(icolor);
alpha = 255;
}
}