Pack colors with Sodium
This commit is contained in:
1 parent
3b9559ed12
commit
a4519c182b
1 file changed
+1
-1
@@ -59,7 +59,7 @@ public final class SinkingVertexBuilder extends FixedColorVertexConsumer {
|
||||
@Nonnull
|
||||
@Override
|
||||
public VertexConsumer color(int r, int g, int b, int a) {
|
||||
color = (a & 0xFF) << 24 | (b & 0xFF) << 16 | (g & 0xFF) << 8 | (r & 0xFF);
|
||||
color = ColorABGR.pack(r, g, b, a);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user