From 8fdc29d4ea36c461d400834933298764afe09c1e Mon Sep 17 00:00:00 2001 From: zontreck Date: Tue, 19 Dec 2023 15:20:12 -0700 Subject: [PATCH] Adjust the profile obtaining command --- gradle.properties | 2 +- src/main/java/dev/zontreck/libzontreck/profiles/Profile.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 25dc867..8eed3d2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -53,7 +53,7 @@ mod_name=Zontreck Library Mod # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=GPLv3 # The mod version. See https://semver.org/ -mod_version=1.9.121923.1104 +mod_version=1.9.121923.1513 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/dev/zontreck/libzontreck/profiles/Profile.java b/src/main/java/dev/zontreck/libzontreck/profiles/Profile.java index fccb118..2e0775a 100644 --- a/src/main/java/dev/zontreck/libzontreck/profiles/Profile.java +++ b/src/main/java/dev/zontreck/libzontreck/profiles/Profile.java @@ -82,8 +82,7 @@ public class Profile { Profile prof = LibZontreck.PROFILES.get(UUID); if(!prof.runSanityChecks()) { - LibZontreck.PROFILES.remove(prof); - return get_profile_of(UUID); + prof.player = ServerUtilities.getPlayerByID(UUID); } return prof; }else {