From 50916fdd21dde67559bd2754c19488f9a80960f8 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 6 Aug 2023 12:22:04 +0700 Subject: [PATCH] major fix fix fifixi xi fidhsuifty4372 --- .../chayapak/chomens_bot/util/PersistentDataUtilities.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 04d5360..871567e 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 @@ -84,7 +84,7 @@ public class PersistentDataUtilities { // ? how do i clear the file contents without making a completely new writer? // or is this the only way? - writer = Files.newBufferedWriter(path, StandardOpenOption.WRITE); + writer = Files.newBufferedWriter(path, StandardOpenOption.TRUNCATE_EXISTING); writer.write(string); writer.flush();