update some logs
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m31s

This commit is contained in:
Lee 2024-04-11 03:54:39 +01:00
parent e9fa275002
commit 6f840654e9
2 changed files with 4 additions and 4 deletions

@ -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<CachedPlayerSkinPart> 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;

@ -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;