mirror of
https://github.com/array-in-a-matrix/brainwine.git
synced 2025-04-02 11:11:58 -04:00
Clear client version on disconnect
This commit is contained in:
parent
07c46f2050
commit
dc8efce885
2 changed files with 2 additions and 1 deletions
|
@ -256,6 +256,7 @@ public class Player extends Entity implements CommandExecutor {
|
||||||
public void onDisconnect() {
|
public void onDisconnect() {
|
||||||
lastHeartbeat = 0;
|
lastHeartbeat = 0;
|
||||||
lastPlacement = null;
|
lastPlacement = null;
|
||||||
|
clientVersion = null;
|
||||||
|
|
||||||
if(zone != null) {
|
if(zone != null) {
|
||||||
zone.removePlayer(this);
|
zone.removePlayer(this);
|
||||||
|
|
|
@ -150,8 +150,8 @@ public class PlayerManager {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
player.setClientVersion(version);
|
|
||||||
player.setConnection(connection);
|
player.setConnection(connection);
|
||||||
|
player.setClientVersion(version);
|
||||||
playersByConnection.put(connection, player);
|
playersByConnection.put(connection, player);
|
||||||
Zone zone = player.getZone();
|
Zone zone = player.getZone();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue