From 4e9322485a9faf4f2994e71f5737c0520a282014 Mon Sep 17 00:00:00 2001 From: NuclearW Date: Sun, 31 Mar 2013 17:12:01 -0400 Subject: [PATCH] Flush write buffer for saving PlayerProfile before closing it. --- .../java/com/gmail/nossr50/datatypes/player/PlayerProfile.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java b/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java index 31ef669c1..0828faa17 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java +++ b/src/main/java/com/gmail/nossr50/datatypes/player/PlayerProfile.java @@ -452,6 +452,7 @@ public class PlayerProfile { // Write the new file FileWriter out = new FileWriter(location); out.write(writer.toString()); + out.flush(); out.close(); } catch (Exception e) {