Username can be 16 * 3 bytes (#789)

https://github.com/PaperMC/Velocity/pull/936
This commit is contained in:
Ismael 2023-03-02 15:08:07 +01:00 committed by GitHub
parent 8af7420740
commit 756aa03a7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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