GameServer#getPlayerByUid = GameServer#getPlayerById

This commit is contained in:
KingRainbow44
2022-04-18 23:53:05 -04:00
parent 824b3a4bf4
commit 7666c92cf1
3 changed files with 6 additions and 12 deletions

View File

@@ -110,12 +110,6 @@ public final class GameServer extends MihoyoKcpServer {
return this.getPlayers().get(id);
}
public GenshinPlayer getPlayerByUid(int uid) {
return this.getPlayers().values().stream()
.filter(player -> player.getAccount().getPlayerId() == uid)
.findFirst().orElse(this.getPlayerById(uid));
}
public GenshinPlayer forceGetPlayerById(int id) {
// Console check
if (id == GenshinConstants.SERVER_CONSOLE_UID) {