Refactor GeyserSession tracking for better concurrency

This commit is contained in:
Camotoy 2021-11-12 09:02:14 -05:00
parent 62cded2daf
commit 09e3793fb2
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F
18 changed files with 169 additions and 112 deletions

View file

@ -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());