From 36a070be4c50012872ca4acc05312990dedf38b7 Mon Sep 17 00:00:00 2001 From: Josh Roy <10731363+JRoy@users.noreply.github.com> Date: Fri, 2 Jul 2021 16:23:44 -0400 Subject: [PATCH] Fix Configurate conversions not saving --- .../main/java/com/earth2me/essentials/EssentialsUpgrade.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/EssentialsUpgrade.java b/Essentials/src/main/java/com/earth2me/essentials/EssentialsUpgrade.java index 9d1dce8c9..42e18dc55 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/EssentialsUpgrade.java +++ b/Essentials/src/main/java/com/earth2me/essentials/EssentialsUpgrade.java @@ -189,7 +189,7 @@ public class EssentialsUpgrade { } public void convertStupidCamelCaseUserdataKeys() { - if (doneFile.getBoolean("updateUsersLegacyPathNames", false)) { + if (doneFile.getBoolean("updateUsersStupidLegacyPathNames", false)) { return; } @@ -232,12 +232,13 @@ public class EssentialsUpgrade { config.removeProperty("acceptingPay"); config.setProperty("accepting-pay", isPay); } + config.blockingSave(); } catch (final RuntimeException ex) { LOGGER.log(Level.INFO, "File: " + file.toString()); throw ex; } } - doneFile.setProperty("updateUsersLegacyPathNames", true); + doneFile.setProperty("updateUsersStupidLegacyPathNames", true); doneFile.save(); LOGGER.info("Done converting legacy userdata keys to Configurate."); }