Fix update world back end and deleting group in front end

This commit is contained in:
gparant 2020-05-11 13:17:02 +02:00
parent 89c22e9964
commit e35c188854
3 changed files with 27 additions and 18 deletions

View file

@ -411,6 +411,9 @@ export class GameScene extends Phaser.Scene implements GameSceneInterface, Creat
}
deleteGroup(groupId: string): void {
if(!this.groups.get(groupId)){
return;
}
this.groups.get(groupId).destroy();
this.groups.delete(groupId);
}