From eaf43fd16e58584c7c906d6ba84e445309b6faad Mon Sep 17 00:00:00 2001 From: Ismael Hanbel Date: Mon, 23 Jan 2023 14:10:00 +0100 Subject: [PATCH] Username can be 16 * 3 bytes https://github.com/PaperMC/Velocity/pull/936 --- BungeeCord-Patches/0056-Additional-DoS-mitigations.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BungeeCord-Patches/0056-Additional-DoS-mitigations.patch b/BungeeCord-Patches/0056-Additional-DoS-mitigations.patch index a3660cdba..6df524801 100644 --- a/BungeeCord-Patches/0056-Additional-DoS-mitigations.patch +++ b/BungeeCord-Patches/0056-Additional-DoS-mitigations.patch @@ -180,7 +180,7 @@ index 5186a6a8..3224b0d2 100644 + // Accommodate the rare (but likely malicious) use of UTF-8 usernames, since it is technically + // legal on the protocol level. + if (protocolVersion >= ProtocolConstants.MINECRAFT_1_19) return -1; -+ return 1 + (16 * 4); ++ return 1 + (16 * 3); + } + // Waterfall end }