Fix failing test (include duplicate check)
All checks were successful
E2E Testing / test (push) Successful in 1m26s

This commit is contained in:
Sebastian Böckelmann 2024-02-10 10:26:56 +01:00
parent 824ccab48b
commit 81cda122a4

View File

@ -25,7 +25,10 @@ export class GameModel {
}
addGamesystem(gamesystem: Gamesystem<any, any>) {
this._gamesystems.push(gamesystem);
if(this.findGamesystem(gamesystem.componentName) == undefined) {
this._gamesystems.push(gamesystem);
}
}
removeGamesystem(gamesystem : Gamesystem<any, any>) {