This commit is contained in:
biglyderv 2024-09-30 02:00:28 -04:00
parent 97ac9cea0b
commit ca3f8d77fa
No known key found for this signature in database
GPG key ID: 33AC87E9ACE66954

View file

@ -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;
})