FIX: if a conversion group move to another user, this user will be added to the group
This commit is contained in:
parent
900c53f499
commit
5255847452
5 changed files with 117 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue