Show all skin parts in the player skin
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Has been cancelled

This commit is contained in:
Braydon 2024-04-11 04:40:40 -04:00
parent 5f37b6b768
commit 43f2ba041d

@ -68,11 +68,10 @@ public final class Skin {
Consumer<ISkinPart> addPart = part -> { Consumer<ISkinPart> addPart = part -> {
partUrls.put(part.name(), AppConfig.INSTANCE.getServerPublicUrl() + "/player/" + part.name().toLowerCase() + "/" + playerUuid + ".png"); partUrls.put(part.name(), AppConfig.INSTANCE.getServerPublicUrl() + "/player/" + part.name().toLowerCase() + "/" + playerUuid + ".png");
}; };
for (ISkinPart part : ISkinPart.Vanilla.values()) { for (Enum<?>[] type : ISkinPart.TYPES) {
addPart.accept(part); for (Enum<?> part : type) {
addPart.accept((ISkinPart) part);
} }
for (ISkinPart part : ISkinPart.Isometric.values()) {
addPart.accept(part);
} }
return this; return this;
} }