From 1e7a856a991c1341f0f4b762c2d6a468220530ef Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Tue, 30 Jul 2024 15:43:22 +0700 Subject: [PATCH] [FIX] Profile duplicate --- .../launchserver/auth/profiles/LocalProfileProvider.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/profiles/LocalProfileProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/profiles/LocalProfileProvider.java index 5c3725ea..c938a1f8 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/profiles/LocalProfileProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/profiles/LocalProfileProvider.java @@ -45,8 +45,7 @@ public void addProfile(ClientProfile profile) throws IOException { } } if(target == null) { - target = IOHelper.resolveIncremental(profilesDirPath, - profile.getTitle(), "json"); + target = profilesDirPath.resolve(profile.getTitle()+".json"); oldProfile = profilesMap.get(target); if(oldProfile != null && !oldProfile.getUUID().equals(profile.getUUID())) { throw new FileAlreadyExistsException(target.toString());