Clear chunks on disconnect regardless of zone being null

This commit is contained in:
kuroppoi 2022-04-11 01:30:22 +02:00
parent d8369011bc
commit fc2ab6bce0

View file

@ -261,10 +261,10 @@ public class Player extends Entity implements CommandExecutor {
if(zone != null) {
zone.removePlayer(this);
activeChunks.clear();
}
dialogs.clear();
activeChunks.clear();
GameServer.getInstance().getPlayerManager().onPlayerDisconnect(this);
connection.setPlayer(null);
connection = null;