3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-04 23:30:17 +01:00

Fixed players not getting removed from the players map on disconnect

Dieser Commit ist enthalten in:
rtm516 2020-04-09 15:26:14 +01:00
Ursprung 77a7b55fb1
Commit b43a3e9abd

Datei anzeigen

@ -63,7 +63,7 @@ public class GeyserConnector {
public static final String NAME = "Geyser";
public static final String VERSION = "1.0-SNAPSHOT";
private final Map<UUID, GeyserSession> players = new HashMap<>();
private final Map<InetSocketAddress, GeyserSession> players = new HashMap<>();
private static GeyserConnector instance;
@ -189,11 +189,11 @@ public class GeyserConnector {
}
public void addPlayer(GeyserSession player) {
players.put(player.getAuthData().getUUID(), player);
players.put(player.getSocketAddress(), player);
}
public void removePlayer(GeyserSession player) {
players.remove(player.getAuthData().getUUID());
players.remove(player.getSocketAddress());
}
public static GeyserConnector start(PlatformType platformType, IGeyserBootstrap bootstrap) {