Fix error when deleting profile
This commit is contained in:
parent
919fdc3486
commit
5ef62d174c
1 changed files with 5 additions and 0 deletions
|
|
@ -108,5 +108,10 @@ public class EditProfileScreen extends Screen {
|
|||
public void onClose() {
|
||||
this.minecraft.setScreen(this.profilesScreen);
|
||||
this.profilesScreen.profilesList.refreshEntries();
|
||||
|
||||
// Checks if the configuration still exists and wasn't deleted
|
||||
if (Files.exists(Profiles.PROFILES_DIRECTORY.resolve(profileName.getString()).resolve("configuration.json"))) {
|
||||
this.profileConfiguration.save();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue