mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Refactor GeyserSession tracking for better concurrency
This commit is contained in:
parent
62cded2daf
commit
09e3793fb2
18 changed files with 169 additions and 112 deletions
|
@ -306,7 +306,7 @@ public class GeyserStandaloneGUI {
|
|||
// Update player table
|
||||
playerTableModel.getDataVector().removeAllElements();
|
||||
|
||||
for (GeyserSession player : GeyserConnector.getInstance().getPlayers()) {
|
||||
for (GeyserSession player : GeyserConnector.getInstance().getSessionManager().getSessions().values()) {
|
||||
Vector<String> row = new Vector<>();
|
||||
row.add(player.getSocketAddress().getHostName());
|
||||
row.add(player.getPlayerEntity().getUsername());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue