diff --git a/src/main/java/cc.fascinated/service/PlayerService.java b/src/main/java/cc.fascinated/service/PlayerService.java index 7af6da2..7db22cc 100644 --- a/src/main/java/cc.fascinated/service/PlayerService.java +++ b/src/main/java/cc.fascinated/service/PlayerService.java @@ -124,6 +124,10 @@ public class PlayerService { * @return the skin part */ public CachedPlayerSkinPart getSkinPart(Player player, Skin.Parts part, boolean renderOverlay, int size) { + if (size > 1024) { + log.info("Size {} is too large, setting to 1024", size); + size = 1024; + } log.info("Getting skin part {} for player: {}", part.getName(), player.getUniqueId()); String key = "%s-%s-%s".formatted(player.getUniqueId(), part.getName(), size); Optional cache = playerSkinPartCacheRepository.findById(key); diff --git a/src/main/java/cc.fascinated/service/skin/impl/IsometricHeadRenderer.java b/src/main/java/cc.fascinated/service/skin/impl/IsometricHeadRenderer.java index 5c6186c..d1be943 100644 --- a/src/main/java/cc.fascinated/service/skin/impl/IsometricHeadRenderer.java +++ b/src/main/java/cc.fascinated/service/skin/impl/IsometricHeadRenderer.java @@ -50,8 +50,8 @@ public class IsometricHeadRenderer extends SkinRenderer { x = xOffset; y = -0.5; z = zOffset; - // The head is offset by 1 pixel for whatever reason - drawPart(graphics, headTop, HEAD_TRANSFORM, y - z, x + z, headTop.getWidth(), headTop.getHeight() + 1); + // The head is offset by 2 pixels for whatever reason + drawPart(graphics, headTop, HEAD_TRANSFORM, y - z, x + z, headTop.getWidth(), headTop.getHeight() + 2); // Draw the front of the head x = xOffset + 8 * scale;