This commit is contained in:
Hri7566 2021-04-12 17:44:25 -04:00
parent 13ae21fcbe
commit 1802c436fc
1 changed files with 3 additions and 2 deletions

View File

@ -61,7 +61,7 @@ class Room extends EventEmitter {
this.settings.color2 = this.server.lobbySettings.color2; this.settings.color2 = this.server.lobbySettings.color2;
this.settings.lobby = true; this.settings.lobby = true;
} else { } 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); this.updateCh(cl, this.settings);
} }
} }
remove(p) { //this is complicated too 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)]) this.server.connections.get(usr.connectionid).sendArray([this.fetchData(usr, cl)])
}); });
console.log(this.settings);
this.server.updateRoom(this.fetchData()); this.server.updateRoom(this.fetchData());
} }