From 6f840654e942abf62eed468f0b617a101c14a2aa Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 11 Apr 2024 03:54:39 +0100 Subject: [PATCH] update some logs --- src/main/java/cc.fascinated/service/PlayerService.java | 6 +++--- .../service/skin/impl/IsometricHeadRenderer.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/cc.fascinated/service/PlayerService.java b/src/main/java/cc.fascinated/service/PlayerService.java index 1d7b376..5de50a5 100644 --- a/src/main/java/cc.fascinated/service/PlayerService.java +++ b/src/main/java/cc.fascinated/service/PlayerService.java @@ -123,7 +123,7 @@ public class PlayerService { * @return the skin part */ public CachedPlayerSkinPart getSkinPart(Player player, Skin.Parts part, boolean renderOverlay, int size) { - log.info("Getting skin part: {} for player: {}", part.getName(), player.getUniqueId()); + 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); @@ -135,12 +135,12 @@ public class PlayerService { long before = System.currentTimeMillis(); byte[] skinPartBytes = part.getSkinPartParser().renderPart(player.getSkin(), part.getName(), renderOverlay, size); - log.info("Took {}ms to render skin part: {} for player: {}", System.currentTimeMillis() - before, part.getName(), player.getUniqueId()); + log.info("Took {}ms to render skin part {} for player: {}", System.currentTimeMillis() - before, part.getName(), player.getUniqueId()); CachedPlayerSkinPart skinPart = new CachedPlayerSkinPart( key, skinPartBytes ); - log.info("Fetched skin part: {} for player: {}", part.getName(), player.getUniqueId()); + log.info("Fetched skin part {} for player: {}", part.getName(), player.getUniqueId()); playerSkinPartCacheRepository.save(skinPart); return skinPart; 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 3035808..d1937aa 100644 --- a/src/main/java/cc.fascinated/service/skin/impl/IsometricHeadRenderer.java +++ b/src/main/java/cc.fascinated/service/skin/impl/IsometricHeadRenderer.java @@ -56,7 +56,7 @@ public class IsometricHeadRenderer extends SkinRenderer { 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); + drawPart(graphics, headTop, HEAD_TRANSFORM, y - z, x + z, headTop.getWidth(), headTop.getHeight() + 1); // Draw the front of the head x = xOffset + 8 * scale;