From cdc3d182bc52c33d8fa95282f5d818b70cef75bc Mon Sep 17 00:00:00 2001 From: Lukas Hass Date: Tue, 15 Feb 2022 12:00:32 +0100 Subject: [PATCH] fix comparison that is always false --- front/src/Phaser/Game/GameScene.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts index 87ca28af..2fcccf99 100644 --- a/front/src/Phaser/Game/GameScene.ts +++ b/front/src/Phaser/Game/GameScene.ts @@ -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 +