Fixed CraftOfflinePlayer.getLastPlayed() returning the wrong result. Addresses BUKKIT-847

By: Olof Larsson <olof@sylt.nu>
This commit is contained in:
CraftBukkit/Spigot 2012-02-27 16:31:52 +01:00
parent 3487d1e709
commit f0ed27ad63

View file

@ -167,7 +167,7 @@ public class CraftOfflinePlayer implements OfflinePlayer, ConfigurationSerializa
public long getLastPlayed() { public long getLastPlayed() {
Player player = getPlayer(); Player player = getPlayer();
if (player != null) return player.getFirstPlayed(); if (player != null) return player.getLastPlayed();
NBTTagCompound data = getBukkitData(); NBTTagCompound data = getBukkitData();