diff --git a/index.js b/index.js index f231196..47ecff8 100644 --- a/index.js +++ b/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; })