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

Simplify isOnline() logic.

Dieser Commit ist enthalten in:
md_5 2015-07-13 18:30:25 +10:00
Ursprung 55589cd363
Commit 1f73bbb56a

Datei anzeigen

@ -105,13 +105,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
}
public boolean isOnline() {
for (Object obj : server.getHandle().players) {
EntityPlayer player = (EntityPlayer) obj;
if (player.getName().equalsIgnoreCase(getName())) {
return true;
}
}
return false;
return server.getPlayer(getUniqueId()) != null;
}
public InetSocketAddress getAddress() {