bugfix
This commit is contained in:
parent
2d70526aa1
commit
994e5aa958
1 changed files with 2 additions and 0 deletions
|
@ -122,7 +122,9 @@ class Game extends GameBasic {
|
|||
let { player } = this;
|
||||
|
||||
if (player.health <= 0) {
|
||||
this.ws.close();
|
||||
this.ws = new WebSocket(origin);
|
||||
this.ws.addEventListener('message', function (e) { that.recv(e) });
|
||||
this.player = new Player(false, true);
|
||||
this.entities.push(this.player);
|
||||
} else if (player.isMenu) {
|
||||
|
|
Loading…
Reference in a new issue