fix ug
This commit is contained in:
parent
97ac9cea0b
commit
ca3f8d77fa
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -46,7 +46,7 @@ app.ws('/', function (ws, req) {
|
|||
})
|
||||
|
||||
ws.on('close', function () {
|
||||
console.log(`A player ${you} left`);
|
||||
console.log(`A player ${game.entities[playerI].you} left`);
|
||||
ws.active = false;
|
||||
player.health = -1;
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue