Merge pull request #1879 from lukashass/fix-comparison-always-false
fix comparison that is always false
This commit is contained in:
commit
8af7166c47
@ -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…
Reference in New Issue
Block a user