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

fix comparison that is always false
develop^2
David Négrier 6 months ago committed by GitHub
commit 8af7166c47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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 +

Loading…
Cancel
Save