diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/util/PersistentDataUtilities.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/util/PersistentDataUtilities.java index dcc76dd..67e32dc 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/util/PersistentDataUtilities.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/util/PersistentDataUtilities.java @@ -73,7 +73,7 @@ public class PersistentDataUtilities { jsonObject = gson.fromJson(reader, JsonObject.class); } - writer = Files.newBufferedWriter(path, StandardOpenOption.WRITE); + writer = Files.newBufferedWriter(path, StandardOpenOption.TRUNCATE_EXISTING); } catch (IOException e) { e.printStackTrace(); }