From 43f2ba041d6a66ffc798cd44b086652b36de7c8d Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Thu, 11 Apr 2024 04:40:40 -0400 Subject: [PATCH] Show all skin parts in the player skin --- src/main/java/me/braydon/mc/model/skin/Skin.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/me/braydon/mc/model/skin/Skin.java b/src/main/java/me/braydon/mc/model/skin/Skin.java index a62058a..2ded5db 100644 --- a/src/main/java/me/braydon/mc/model/skin/Skin.java +++ b/src/main/java/me/braydon/mc/model/skin/Skin.java @@ -68,11 +68,10 @@ public final class Skin { Consumer addPart = part -> { partUrls.put(part.name(), AppConfig.INSTANCE.getServerPublicUrl() + "/player/" + part.name().toLowerCase() + "/" + playerUuid + ".png"); }; - for (ISkinPart part : ISkinPart.Vanilla.values()) { - addPart.accept(part); - } - for (ISkinPart part : ISkinPart.Isometric.values()) { - addPart.accept(part); + for (Enum[] type : ISkinPart.TYPES) { + for (Enum part : type) { + addPart.accept((ISkinPart) part); + } } return this; }