From 4b672de85d5872ec83dc1035215b5f32c6797924 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 12 Apr 2024 19:52:38 +0100 Subject: [PATCH] add minimum size to player images --- src/main/java/cc/fascinated/service/PlayerService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/cc/fascinated/service/PlayerService.java b/src/main/java/cc/fascinated/service/PlayerService.java index 5d52115..8fbb6dc 100644 --- a/src/main/java/cc/fascinated/service/PlayerService.java +++ b/src/main/java/cc/fascinated/service/PlayerService.java @@ -132,6 +132,10 @@ public class PlayerService { log.info("Size {} is too large, setting to 512", size); size = 512; } + if (size < 32) { + log.info("Size {} is too small, setting to 32", size); + size = 32; + } ISkinPart part = ISkinPart.getByName(partName); // The skin part to get if (part == null) { throw new BadRequestException("Invalid skin part: %s".formatted(partName));