add minimum size to player images
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m13s
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m13s
This commit is contained in:
parent
55c1ca4139
commit
4b672de85d
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user