fix ug
This commit is contained in:
parent
3164a974b6
commit
f171b3c320
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