From ebc877daab1dd0cb4ee8bec504681606342b0473 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 13 Apr 2014 14:45:57 +1000 Subject: [PATCH] Use Correct firstPlayed Value. diff --git a/src/main/java/net/minecraft/server/WorldNBTStorage.java b/src/main/java/net/minecraft/server/WorldNBTStorage.java index 89ba461..8f2de94 100644 --- a/src/main/java/net/minecraft/server/WorldNBTStorage.java +++ b/src/main/java/net/minecraft/server/WorldNBTStorage.java @@ -194,8 +194,9 @@ public class WorldNBTStorage implements IDataManager, IPlayerFileData { public NBTTagCompound load(EntityHuman entityhuman) { NBTTagCompound nbttagcompound = null; + File file1 = null; // Spigot try { - File file1 = new File(this.playerDir, entityhuman.getUniqueID().toString() + ".dat"); + file1 = new File(this.playerDir, entityhuman.getUniqueID().toString() + ".dat"); // Spigot // Spigot Start boolean usingWrongFile = false; if ( !file1.exists() ) @@ -226,7 +227,7 @@ public class WorldNBTStorage implements IDataManager, IPlayerFileData { // CraftBukkit start if (entityhuman instanceof EntityPlayer) { CraftPlayer player = (CraftPlayer) entityhuman.bukkitEntity; - player.setFirstPlayed(new File(playerDir, entityhuman.getName() + ".dat").lastModified()); + player.setFirstPlayed(file1.lastModified()); // Spigot } // CraftBukkit end -- 1.8.3.2