mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Update player session removal
This commit is contained in:
1 parent
f542ea7cb4
commit
1b0b6873b9
2 files changed
+24
-29
No files matched your search
@@ -60,10 +60,12 @@ public class GameSession {
|
||||
var player = this.player;
|
||||
this.player = null;
|
||||
|
||||
// Remove session from player
|
||||
player.removeSession();
|
||||
// Remove session reference from player ONLY if their session wasn't replaced yet
|
||||
if (player.getSession() == this) {
|
||||
player.setSession(null);
|
||||
}
|
||||
|
||||
// Set remove flag
|
||||
// Set session removal flag
|
||||
this.remove = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user