fixed removing users from session

This commit is contained in:
2025-07-13 21:22:29 +02:00
parent 0a40a8ce5d
commit be19e6124d
3 changed files with 20 additions and 25 deletions

View File

@@ -65,7 +65,6 @@ export class levelState{
removePlayer(player : characterData) : boolean{
this.players = this.players.filter(p=> p !== player)
if(this.hostId == player.id){
if(this.players.length > 0){
this.hostId = this.players[0].id