From 3f191d7c302dc7db45089e60b53ed1253966566f Mon Sep 17 00:00:00 2001 From: Puqns67 Date: Tue, 9 Jul 2024 00:35:14 +0800 Subject: [PATCH] chore: some small improvements --- src/main/java/icu/puqns67/skintypefix/util/Utils.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/icu/puqns67/skintypefix/util/Utils.java b/src/main/java/icu/puqns67/skintypefix/util/Utils.java index 9052fe8..8d87937 100644 --- a/src/main/java/icu/puqns67/skintypefix/util/Utils.java +++ b/src/main/java/icu/puqns67/skintypefix/util/Utils.java @@ -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); } }