chore: some small improvements

This commit is contained in:
Puqns67 2024-07-09 00:35:14 +08:00
parent 4c3cccde87
commit 3f191d7c30
Signed by: Puqns67
GPG Key ID: 9669DF042554F536

View File

@ -1,12 +1,11 @@
package icu.puqns67.skintypefix.util;
import net.minecraft.Util;
import net.minecraft.client.resources.PlayerSkin;
import java.util.UUID;
public class Utils {
private static final UUID INVALID_UUID = new UUID(0, 0);
public static PlayerSkin.Model reverseModelType(PlayerSkin.Model type) {
return switch (type) {
case SLIM -> PlayerSkin.Model.WIDE;
@ -15,6 +14,6 @@ public class Utils {
}
public static boolean isInvalidUUID(UUID uuid) {
return INVALID_UUID.equals(uuid);
return Util.NIL_UUID.equals(uuid);
}
}