This commit is contained in:
biglyderv 2024-10-02 04:17:49 -04:00
parent 2d70526aa1
commit 994e5aa958
No known key found for this signature in database
GPG key ID: 33AC87E9ACE66954

View file

@ -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) {