Fix simple things

This commit is contained in:
Kneelawk 2024-03-04 18:29:33 -08:00
parent 8f4958ee2a
commit b477ef0f65
No known key found for this signature in database
GPG Key ID: DB4E28870D6D260A

View File

@ -74,7 +74,7 @@ public class PlayerUniforms implements UniformProvider {
}
private static long writeTeamColor(long ptr, PlayerInfo info) {
int red = 0, green = 0, blue = 0, alpha = 0;
int red = 255, green = 255, blue = 255, alpha = 0;
PlayerTeam team = info.getTeam();
if (team != null) {
Integer color = team.getColor().getColor();
@ -118,7 +118,7 @@ public class PlayerUniforms implements UniformProvider {
return ptr + 4;
}
private long writeEyeIn(long ptr, LocalPlayer player) {
private static long writeEyeIn(long ptr, LocalPlayer player) {
ClientLevel level = player.clientLevel;
Vec3 eyePos = player.getEyePosition();
BlockPos blockPos = BlockPos.containing(eyePos);