Browse Source

Flush write buffer for saving PlayerProfile before closing it.

NuclearW 12 years ago
parent
commit
4e9322485a

+ 1 - 0
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) {