mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Flush write buffer for saving PlayerProfile before closing it.
This commit is contained in:
		@@ -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) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user