Flush write buffer for saving PlayerProfile before closing it.

This commit is contained in:
NuclearW 2013-03-31 17:12:01 -04:00
parent fc8ad40b00
commit 4e9322485a

View File

@ -452,6 +452,7 @@ public class PlayerProfile {
// Write the new file // Write the new file
FileWriter out = new FileWriter(location); FileWriter out = new FileWriter(location);
out.write(writer.toString()); out.write(writer.toString());
out.flush();
out.close(); out.close();
} }
catch (Exception e) { catch (Exception e) {