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