Skip to content

Commit 46619a9

Browse files
committed
Fix configurable username check condition
1 parent e73dcab commit 46619a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

leaf-server/paper-patches/features/0061-Configurable-vanilla-username-check.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Subject: [PATCH] Configurable vanilla username check
55

66

77
diff --git a/src/main/java/com/destroystokyo/paper/profile/CraftPlayerProfile.java b/src/main/java/com/destroystokyo/paper/profile/CraftPlayerProfile.java
8-
index db43329d57144471d0c9ce0eed92d2f1bd05f120..d65bde85ecae29104c5c34380f164252df9e4515 100644
8+
index db43329d57144471d0c9ce0eed92d2f1bd05f120..0f9eb0901afe9def24e616a42326126fd95c4987 100644
99
--- a/src/main/java/com/destroystokyo/paper/profile/CraftPlayerProfile.java
1010
+++ b/src/main/java/com/destroystokyo/paper/profile/CraftPlayerProfile.java
1111
@@ -62,6 +62,14 @@ public class CraftPlayerProfile implements PlayerProfile, SharedPlayerProfile {
@@ -29,7 +29,7 @@ index db43329d57144471d0c9ce0eed92d2f1bd05f120..d65bde85ecae29104c5c34380f164252
2929

3030
+ // Leaf start - Configurable vanilla username check
3131
+ public CraftPlayerProfile cloneCustom() {
32-
+ CraftPlayerProfile clone = new CraftPlayerProfile(this.getId(), this.getName(), true);
32+
+ CraftPlayerProfile clone = new CraftPlayerProfile(this.getId(), this.getName(), org.dreeam.leaf.config.modules.misc.VanillaUsernameCheck.useUsernameRegex);
3333
+ clone.setProperties(getProperties());
3434
+ return clone;
3535
+ }

0 commit comments

Comments
 (0)