Merge pull request #1879 from lukashass/fix-comparison-always-false

fix comparison that is always false
This commit is contained in:
David Négrier 2022-02-15 18:17:40 +01:00 committed by GitHub
commit 8af7166c47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1405,7 +1405,7 @@ ${escapedMessage}
phaserLayer.setCollisionByProperty({ collides: true }, visible); phaserLayer.setCollisionByProperty({ collides: true }, visible);
} else { } else {
const phaserLayers = this.gameMap.findPhaserLayers(layerName + "/"); const phaserLayers = this.gameMap.findPhaserLayers(layerName + "/");
if (phaserLayers === []) { if (phaserLayers.length === 0) {
console.warn( console.warn(
'Could not find layer with name that contains "' + 'Could not find layer with name that contains "' +
layerName + layerName +