From 56420b0abd341cc853151c2a00a02077dcc4ed82 Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Sat, 1 Jan 2022 11:50:44 -0800 Subject: [PATCH] Allow . in usernames --- patches/server/Validate-usernames.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Validate-usernames.patch b/patches/server/Validate-usernames.patch index 795dfe2684..893b551577 100644 --- a/patches/server/Validate-usernames.patch +++ b/patches/server/Validate-usernames.patch @@ -21,7 +21,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + for (int i = 0, len = in.length(); i < len; ++i) { + char c = in.charAt(i); + -+ if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || (c == '_')) { ++ if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || (c == '_' || c == '.')) { + continue; + } +