fixed removing users from session

fixed client positions not updating
This commit is contained in:
2025-07-13 21:22:29 +02:00
parent 0a40a8ce5d
commit 96d4c30126
4 changed files with 21 additions and 28 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