Merge pull request #1833 from thecodingmachine/stabilize-cowebsite

Fix multi cowebsite creation by trigger
This commit is contained in:
Alexis Faizeau 2022-02-07 18:24:04 +01:00 committed by GitHub
commit 5dc3fbcce5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,