This commit is contained in:
Hri7566 2021-04-12 17:44:25 -04:00
parent 784853a7c7
commit 8980314b14
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.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());
}