mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Merge pull request #296 from rtm516/player-remove-fix
Fixed players not getting removed from the players map on disconnect
This commit is contained in:
commit
d01eb956a7
1 changed files with 3 additions and 3 deletions
|
@ -63,7 +63,7 @@ public class GeyserConnector {
|
||||||
public static final String NAME = "Geyser";
|
public static final String NAME = "Geyser";
|
||||||
public static final String VERSION = "1.0-SNAPSHOT";
|
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;
|
private static GeyserConnector instance;
|
||||||
|
|
||||||
|
@ -189,11 +189,11 @@ public class GeyserConnector {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addPlayer(GeyserSession player) {
|
public void addPlayer(GeyserSession player) {
|
||||||
players.put(player.getAuthData().getUUID(), player);
|
players.put(player.getSocketAddress(), player);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removePlayer(GeyserSession player) {
|
public void removePlayer(GeyserSession player) {
|
||||||
players.remove(player.getAuthData().getUUID());
|
players.remove(player.getSocketAddress());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static GeyserConnector start(PlatformType platformType, IGeyserBootstrap bootstrap) {
|
public static GeyserConnector start(PlatformType platformType, IGeyserBootstrap bootstrap) {
|
||||||
|
|
Loading…
Reference in a new issue