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(), callback: () => openCoWebsiteFunction(),
userInputManager: this.scene.userInputManager, userInputManager: this.scene.userInputManager,
}); });
} else if (!websiteTriggerProperty || websiteTriggerProperty === ON_ICON_TRIGGER_BUTTON) { } else if (websiteTriggerProperty === ON_ICON_TRIGGER_BUTTON) {
const coWebsite = coWebsiteManager.addCoWebsite( const coWebsite = coWebsiteManager.addCoWebsite(
openWebsiteProperty, openWebsiteProperty,
this.scene.MapUrlFile, this.scene.MapUrlFile,