FIX: if a conversion group move to another user, this user will be added to the group

This commit is contained in:
Kharhamel 2021-10-07 11:04:40 +02:00
parent 900c53f499
commit 5255847452
5 changed files with 117 additions and 25 deletions

View file

@ -181,6 +181,7 @@ export class GameRoom {
private updateUserGroup(user: User): void {
user.group?.updatePosition();
user.group?.searchForNearbyUsers();
if (user.silent) {
return;
@ -206,6 +207,7 @@ export class GameRoom {
const group: Group = new Group(
this.roomUrl,
[user, closestUser],
this.groupRadius,
this.connectCallback,
this.disconnectCallback,
this.positionNotifier