mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
Flush write buffer for saving PlayerProfile before closing it.
This commit is contained in:
parent
fc8ad40b00
commit
4e9322485a
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user