diff --git a/src/lib/map/light/MapLight.ts b/src/lib/map/light/MapLight.ts index 657389a..537ea1e 100644 --- a/src/lib/map/light/MapLight.ts +++ b/src/lib/map/light/MapLight.ts @@ -131,7 +131,7 @@ class MapLight extends SceneLight { } #selectLights(position: THREE.Vector3) { - if (!this.#lights || this.#mapId === undefined) { + if (!this.#lights || this.#mapId === undefined || !this.#lights[this.#mapId]) { return; }