Archiviert
13
0

Simplify OfflinePlayer.getPlayer() logic.

Dieser Commit ist enthalten in:
md_5 2015-07-13 18:54:08 +10:00
Ursprung 1f73bbb56a
Commit 65cd4d79fd

Datei anzeigen

@ -144,14 +144,7 @@ public class CraftOfflinePlayer implements OfflinePlayer, ConfigurationSerializa
}
public Player getPlayer() {
for (Object obj : server.getHandle().players) {
EntityPlayer player = (EntityPlayer) obj;
if (player.getUniqueID().equals(getUniqueId())) {
return (player.playerConnection != null) ? player.playerConnection.getPlayer() : null;
}
}
return null;
return server.getPlayer(getUniqueId());
}
@Override