From 1802c436fcb374b1e7bd25ad320cc8dbcd97b681 Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Mon, 12 Apr 2021 17:44:25 -0400 Subject: [PATCH] fix --- src/Room.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Room.js b/src/Room.js index 62024ed..9ecec2d 100644 --- a/src/Room.js +++ b/src/Room.js @@ -61,7 +61,7 @@ class Room extends EventEmitter { this.settings.color2 = this.server.lobbySettings.color2; this.settings.lobby = true; } else { - this.settings = new RoomSettings(set, 'user'); + this.settings = new RoomSettings(cl.channel.settings, 'user'); } } @@ -94,7 +94,6 @@ class Room extends EventEmitter { }]) this.updateCh(cl, this.settings); } - } remove(p) { //this is complicated too @@ -129,6 +128,8 @@ class Room extends EventEmitter { this.server.connections.get(usr.connectionid).sendArray([this.fetchData(usr, cl)]) }); + console.log(this.settings); + this.server.updateRoom(this.fetchData()); }