Only complete incomplete profiles - Resolves #1053
This commit is contained in:
@@ -6,7 +6,7 @@ Subject: [PATCH] Basic PlayerProfile API
|
||||
|
||||
diff --git a/src/main/java/com/destroystokyo/paper/profile/CraftPlayerProfile.java b/src/main/java/com/destroystokyo/paper/profile/CraftPlayerProfile.java
|
||||
new file mode 100644
|
||||
index 000000000..2cfd65bc1
|
||||
index 000000000..1d669e3e2
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/com/destroystokyo/paper/profile/CraftPlayerProfile.java
|
||||
@@ -0,0 +0,0 @@
|
||||
@@ -121,7 +121,9 @@ index 000000000..2cfd65bc1
|
||||
+ }
|
||||
+
|
||||
+ public boolean complete() {
|
||||
+ profile = MinecraftServer.getServer().getSessionService().fillProfileProperties(profile, true);
|
||||
+ if (!profile.isComplete()) {
|
||||
+ profile = MinecraftServer.getServer().getSessionService().fillProfileProperties(profile, true);
|
||||
+ }
|
||||
+ return profile.isComplete();
|
||||
+ }
|
||||
+
|
||||
|
||||
Reference in New Issue
Block a user