3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00

Use a different temp file for each player to avoid corruption. Fixes BUKKIT-1607

Dieser Commit ist enthalten in:
Travis Watkins 2012-05-01 22:34:23 -05:00
Ursprung ef7e14f9ef
Commit cbd20ec9ea

Datei anzeigen

@ -173,7 +173,7 @@ public class WorldNBTStorage implements PlayerFileData, IDataManager {
NBTTagCompound nbttagcompound = new NBTTagCompound();
entityhuman.d(nbttagcompound);
File file1 = new File(this.playerDir, "_tmp_.dat");
File file1 = new File(this.playerDir, entityhuman.name + ".dat~"); // CraftBukkit - don't save every player to the same file
File file2 = new File(this.playerDir, entityhuman.name + ".dat");
NBTCompressedStreamTools.a(nbttagcompound, (OutputStream) (new FileOutputStream(file1)));