From 5b8188c202000b20532313314fe991fa50b5df58 Mon Sep 17 00:00:00 2001 From: Evan Goode Date: Fri, 4 Apr 2025 20:44:47 -0400 Subject: [PATCH] Correct default skin size limit to 64 --- config.go | 2 +- doc/configuration.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.go b/config.go index 2133f07..9fcdab5 100644 --- a/config.go +++ b/config.go @@ -197,7 +197,7 @@ func DefaultConfig() Config { BufferItems: 64, }, SignPublicKeys: true, - SkinSizeLimit: 128, + SkinSizeLimit: 64, StateDirectory: GetDefaultStateDirectory(), TokenExpireSec: 0, TokenStaleSec: 0, diff --git a/doc/configuration.md b/doc/configuration.md index 89fa89a..0fde89b 100644 --- a/doc/configuration.md +++ b/doc/configuration.md @@ -101,7 +101,7 @@ Other available options: - `MinPasswordLength`: Users will not be able to choose passwords shorter than this length. Integer. Default value: `8`. - `DefaultPreferredLanguage`: Default "preferred language" for user accounts. The Minecraft client expects an account to have a "preferred language", but I have no idea what it's used for. Choose one of the two-letter codes from [https://www.oracle.com/java/technologies/javase/jdk8-jre8-suported-locales.html](https://www.oracle.com/java/technologies/javase/jdk8-jre8-suported-locales.html). String. Default value: `"en"`. -- `SkinSizeLimit`: The maximum width, in pixels, of a user-uploaded skin or cape. Normally, Minecraft skins are 128 × 128 pixels, and capes are 128 × 64 pixels. You can raise this limit to support high resolution skins and capes, but you will also need a client-side mod like [MCCustomSkinLoader](https://github.com/xfl03/MCCustomSkinLoader) (untested). Set to `0` to remove the limit entirely, but the size of the skin file will still be limited by `BodyLimit`. Integer. Default value: `128`. +- `SkinSizeLimit`: The maximum width, in pixels, of a user-uploaded skin or cape. Normally, Minecraft skins are 64 × 64 pixels, and capes are 64 × 32 pixels. You can raise this limit to support high resolution skins and capes, but you will also need a client-side mod like [MCCustomSkinLoader](https://github.com/xfl03/MCCustomSkinLoader) (untested). Set to `0` to remove the limit entirely, but the size of the skin file will still be limited by `BodyLimit`. The dimensions of a skin must always be a multiple of 64 × 64 or 64 × 32 pixels, and the dimensions of a cape must always be a multiple of 64 × 32. Integer. Default value: `64`. - `SignPublicKeys`: Whether to sign players' public keys. Boolean. Default value: `true`. - Must be enabled if you want to support servers with `enforce-secure-profile=true` in server.properties. - Limits servers' ability to forge messages from players.