add ClientUtil.argbToInt()

This commit is contained in:
James Seibel
2024-10-21 08:53:26 -04:00
parent b77acaa3b2
commit 520b4e0930
2 changed files with 5 additions and 5 deletions
@@ -324,12 +324,12 @@ public class ClientBlockStateColorCache
if (count == 0)
{
// this block is entirely transparent
tempColor = ColorUtil.rgbToInt(0, 255, 255, 255);
tempColor = ColorUtil.argbToInt(0, 255, 255, 255);
}
else
{
// determine the average color
tempColor = ColorUtil.rgbToInt(
tempColor = ColorUtil.argbToInt(
alpha / count,
linearToSrgb((float) (red / (double) alpha)),
linearToSrgb((float) (green / (double) alpha)),
@@ -337,10 +337,10 @@ public class ClientBlockStateColorCache
}
//check if not missing texture
if (tempColor == ColorUtil.rgbToInt(255, 182, 0, 182))
if (tempColor == ColorUtil.argbToInt(255, 182, 0, 182))
{
//make it not render at all
tempColor = ColorUtil.rgbToInt(0, 255, 255, 255);
tempColor = ColorUtil.argbToInt(0, 255, 255, 255);
}
return tempColor;
}