forked from Hri7566/mpp-server-dev2
fix
This commit is contained in:
parent
784853a7c7
commit
8980314b14
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue