From 54efb582b185c0e41cbded7c51e8b5a07b1705d8 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 4 Jul 2020 14:29:04 +1200 Subject: [PATCH] Fix preferences file saving --- .../me/libraryaddict/disguise/utilities/DisguiseUtilities.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index 749f33c2..c1f424c7 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -205,6 +205,7 @@ public class DisguiseUtilities { String json = getGson().toJson(map); try { + viewPreferences.delete(); Files.write(viewPreferences.toPath(), json.getBytes(), StandardOpenOption.CREATE); } catch (IOException e) {