@@ -194,13 +194,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ public boolean complete(boolean textures, boolean onlineMode) {
|
+ public boolean complete(boolean textures, boolean onlineMode) {
|
||||||
+ MinecraftServer server = MinecraftServer.getServer();
|
+ MinecraftServer server = MinecraftServer.getServer();
|
||||||
+
|
+
|
||||||
+ boolean isCompleteFromCache = this.completeFromCache(false, onlineMode);
|
+ boolean isCompleteFromCache = this.completeFromCache(true, onlineMode);
|
||||||
+ if (onlineMode && (!isCompleteFromCache || textures && !hasTextures())) {
|
+ if (onlineMode && (!isCompleteFromCache || textures && !hasTextures())) {
|
||||||
+ GameProfile result = server.getSessionService().fillProfileProperties(profile, true);
|
+ GameProfile result = server.getSessionService().fillProfileProperties(profile, true);
|
||||||
+ if (result != null) {
|
+ if (result != null) {
|
||||||
+ copyProfileProperties(result, this.profile, true);
|
+ copyProfileProperties(result, this.profile, true);
|
||||||
+ }
|
+ }
|
||||||
+ server.getUserCache().saveProfile(this.profile);
|
+ if (this.profile.isComplete()) {
|
||||||
|
+ server.getUserCache().saveProfile(this.profile);
|
||||||
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+ return profile.isComplete() && (!onlineMode || !textures || hasTextures());
|
+ return profile.isComplete() && (!onlineMode || !textures || hasTextures());
|
||||||
+ }
|
+ }
|
||||||
|
|||||||
Reference in New Issue
Block a user