mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-02-22 09:55:33 +01:00
Make alpha 1 if team exists but does not have a color
This commit is contained in:
parent
b477ef0f65
commit
5399b0fc50
1 changed files with 1 additions and 1 deletions
|
@ -77,13 +77,13 @@ public class PlayerUniforms implements UniformProvider {
|
||||||
int red = 255, green = 255, blue = 255, alpha = 0;
|
int red = 255, green = 255, blue = 255, alpha = 0;
|
||||||
PlayerTeam team = info.getTeam();
|
PlayerTeam team = info.getTeam();
|
||||||
if (team != null) {
|
if (team != null) {
|
||||||
|
alpha = 255;
|
||||||
Integer color = team.getColor().getColor();
|
Integer color = team.getColor().getColor();
|
||||||
if (color != null) {
|
if (color != null) {
|
||||||
int icolor = color;
|
int icolor = color;
|
||||||
red = FastColor.ARGB32.red(icolor);
|
red = FastColor.ARGB32.red(icolor);
|
||||||
green = FastColor.ARGB32.green(icolor);
|
green = FastColor.ARGB32.green(icolor);
|
||||||
blue = FastColor.ARGB32.blue(icolor);
|
blue = FastColor.ARGB32.blue(icolor);
|
||||||
alpha = 255;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue