From 46619a9edf4734f7abedd1dcbc03d9c4af96c3c9 Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Sat, 3 Jan 2026 08:16:27 -0500 Subject: [PATCH] Fix configurable username check condition --- .../features/0061-Configurable-vanilla-username-check.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leaf-server/paper-patches/features/0061-Configurable-vanilla-username-check.patch b/leaf-server/paper-patches/features/0061-Configurable-vanilla-username-check.patch index 67f626dc..955e5d2c 100644 --- a/leaf-server/paper-patches/features/0061-Configurable-vanilla-username-check.patch +++ b/leaf-server/paper-patches/features/0061-Configurable-vanilla-username-check.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Configurable vanilla username check diff --git a/src/main/java/com/destroystokyo/paper/profile/CraftPlayerProfile.java b/src/main/java/com/destroystokyo/paper/profile/CraftPlayerProfile.java -index db43329d57144471d0c9ce0eed92d2f1bd05f120..d65bde85ecae29104c5c34380f164252df9e4515 100644 +index db43329d57144471d0c9ce0eed92d2f1bd05f120..0f9eb0901afe9def24e616a42326126fd95c4987 100644 --- a/src/main/java/com/destroystokyo/paper/profile/CraftPlayerProfile.java +++ b/src/main/java/com/destroystokyo/paper/profile/CraftPlayerProfile.java @@ -62,6 +62,14 @@ public class CraftPlayerProfile implements PlayerProfile, SharedPlayerProfile { @@ -29,7 +29,7 @@ index db43329d57144471d0c9ce0eed92d2f1bd05f120..d65bde85ecae29104c5c34380f164252 + // Leaf start - Configurable vanilla username check + public CraftPlayerProfile cloneCustom() { -+ CraftPlayerProfile clone = new CraftPlayerProfile(this.getId(), this.getName(), true); ++ CraftPlayerProfile clone = new CraftPlayerProfile(this.getId(), this.getName(), org.dreeam.leaf.config.modules.misc.VanillaUsernameCheck.useUsernameRegex); + clone.setProperties(getProperties()); + return clone; + }