X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=game.js;fp=game.js;h=fa290681f2fc85117500a0c883683c9fb230ead7;hb=4c3572dcbf3e133c9f3d0c7d295f412ff5b88763;hp=55145bbaee018b89d37aff24c2c617f907fc1636;hpb=99eb3c3fd206ca16e950f1a07e6f189db9cfdaba;p=lmno-server diff --git a/game.js b/game.js index 55145bb..fa29068 100644 --- a/game.js +++ b/game.js @@ -184,6 +184,7 @@ class Game { this.broadcast_event("player-enter", existing.info_json()); } existing.add_connection(connection); + this.players_by_session[session.id] = existing; return existing; }