diff --git a/common/src/main/java/com/axolotlmaid/optionsprofiles/gui/EditProfileScreen.java b/common/src/main/java/com/axolotlmaid/optionsprofiles/gui/EditProfileScreen.java index 44c506e..5d9bd81 100644 --- a/common/src/main/java/com/axolotlmaid/optionsprofiles/gui/EditProfileScreen.java +++ b/common/src/main/java/com/axolotlmaid/optionsprofiles/gui/EditProfileScreen.java @@ -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(); + } } } \ No newline at end of file