Change return type

This commit is contained in:
方块君 2022-07-21 21:17:24 +08:00
parent 3bc9b0ab14
commit 67f3eb180d

View File

@ -9,10 +9,10 @@ import java.util.concurrent.atomic.AtomicReference;
public class SocketData {
public static HashMap<String, PlayerList> playerList = new HashMap<>();
public static PlayerList getPlayer(int uid) {
public static String getPlayer(int uid) {
for (PlayerList player : playerList.values()) {
if (player.playerMap.get(uid) != null) {
return player;
return player.playerMap.get(uid);
}
}
return null;