From 29c842aaf8792bc0464972e286fa162966065c97 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 8 Apr 2024 06:19:27 +0100 Subject: [PATCH] change head default size --- src/main/java/cc/fascinated/model/player/Skin.java | 4 ++-- .../cc/fascinated/service/mojang/model/MojangProfile.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/cc/fascinated/model/player/Skin.java b/src/main/java/cc/fascinated/model/player/Skin.java index 917e939..df185b5 100644 --- a/src/main/java/cc/fascinated/model/player/Skin.java +++ b/src/main/java/cc/fascinated/model/player/Skin.java @@ -61,7 +61,7 @@ public class Skin { public Skin populatePartUrls(String playerUuid) { for (Parts part : Parts.values()) { String partName = part.name().toLowerCase(); - this.partUrls.put(partName, Config.INSTANCE.getWebPublicUrl() + "/player/" + partName + "/" + playerUuid + "?size=250"); + this.partUrls.put(partName, Config.INSTANCE.getWebPublicUrl() + "/player/" + partName + "/" + playerUuid + "?size=" + part.getDefaultSize()); } return this; } @@ -73,7 +73,7 @@ public class Skin { @Getter @AllArgsConstructor public enum Parts { - HEAD(8, 8, 8, 8, 250); + HEAD(8, 8, 8, 8, 128); /** * The x and y position of the part. diff --git a/src/main/java/cc/fascinated/service/mojang/model/MojangProfile.java b/src/main/java/cc/fascinated/service/mojang/model/MojangProfile.java index dc69d13..2de5443 100644 --- a/src/main/java/cc/fascinated/service/mojang/model/MojangProfile.java +++ b/src/main/java/cc/fascinated/service/mojang/model/MojangProfile.java @@ -16,7 +16,6 @@ import java.util.List; @Getter @NoArgsConstructor public class MojangProfile { - /** * The UUID of the player. */ @@ -52,7 +51,7 @@ public class MojangProfile { /** * Gets the formatted UUID of the player. - * + * * @return the formatted UUID */ public String getFormattedUuid() {