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());