Fix multi cowebsite creation by trigger

This commit is contained in:
Alexis Faizeau 2022-02-07 18:23:02 +01:00
parent e51300e850
commit c770846558

View file

@ -169,7 +169,7 @@ export class GameMapPropertiesListener {
callback: () => openCoWebsiteFunction(),
userInputManager: this.scene.userInputManager,
});
} else if (!websiteTriggerProperty || websiteTriggerProperty === ON_ICON_TRIGGER_BUTTON) {
} else if (websiteTriggerProperty === ON_ICON_TRIGGER_BUTTON) {
const coWebsite = coWebsiteManager.addCoWebsite(
openWebsiteProperty,
this.scene.MapUrlFile,