Perhaps actually call the method on disconnect

This commit is contained in:
kuroppoi 2022-04-10 17:47:36 +02:00
parent cfe5ba1167
commit 3a4abfadc6

View file

@ -264,6 +264,7 @@ public class Player extends Entity implements CommandExecutor {
}
dialogs.clear();
GameServer.getInstance().getPlayerManager().onPlayerDisconnect(this);
connection.setPlayer(null);
connection = null;
}