Fixed item coloring.
This commit is contained in:
@@ -2,9 +2,9 @@ package li.cil.oc2.common.util;
|
||||
|
||||
public final class ColorUtils {
|
||||
public static int textureDiffuseColorsToRGB(final float[] colors) {
|
||||
final int r = ((int) colors[0] * 255) & 0xFF;
|
||||
final int g = ((int) colors[1] * 255) & 0xFF;
|
||||
final int b = ((int) colors[2] * 255) & 0xFF;
|
||||
final int r = ((int) (colors[0] * 255)) & 0xFF;
|
||||
final int g = ((int) (colors[1] * 255)) & 0xFF;
|
||||
final int b = ((int) (colors[2] * 255)) & 0xFF;
|
||||
return r << 16 | g << 8 | b;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -464,6 +464,7 @@ public final class Terminal {
|
||||
|
||||
@Override
|
||||
public void render(final PoseStack stack) {
|
||||
// TODO Right now we'll trigger multiple sounds if screen is open.
|
||||
if (hasPendingBell) {
|
||||
hasPendingBell = false;
|
||||
final Minecraft client = Minecraft.getInstance();
|
||||
|
||||
Reference in New Issue
Block a user