浏览代码

Fixed players writing overlapped

cerevisiae 14 年之前
父节点
当前提交
a0ecb3e09e
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      vMinecraftUsers.java

+ 2 - 3
vMinecraftUsers.java

@@ -313,7 +313,7 @@ class PlayerList
         {
         {
             try {
             try {
             	//Open the file to write the player
             	//Open the file to write the player
-            	FileWriter file = new FileWriter(location);
+            	FileWriter file = new FileWriter(location, true);
                 BufferedWriter out = new BufferedWriter(file);
                 BufferedWriter out = new BufferedWriter(file);
                 
                 
                 //Add the player to the end
                 //Add the player to the end
@@ -333,8 +333,7 @@ class PlayerList
     			out.append(":");
     			out.append(":");
     			
     			
     			out.append(aliasList.toString());
     			out.append(aliasList.toString());
-    			out.append("\r\n");
-    			
+    			out.newLine();
     			out.close();
     			out.close();
                
                
 	        } catch (Exception e) {
 	        } catch (Exception e) {