fix comparison that is always false

This commit is contained in:
Lukas Hass 2022-02-15 12:00:32 +01:00
parent e801e2a435
commit cdc3d182bc
No known key found for this signature in database
GPG Key ID: 7C8CEF72C4039178
1 changed files with 1 additions and 1 deletions

View File

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