mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixed crashing player destroy
This commit is contained in:
parent
a4120f6ff5
commit
4bf4eb8b35
3 changed files with 6 additions and 4 deletions
|
|
@ -79,9 +79,7 @@ function (PhysicsEngine, TiledLevel, Player, Nc, Doll) {
|
|||
console.warn("User (", userId ,") left who has not joined");
|
||||
return;
|
||||
}
|
||||
|
||||
this.onGameObjectRemove('animated', player);
|
||||
|
||||
|
||||
player.destroy();
|
||||
delete this.players[userId];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue