fix: dupplicate buisson and ecole

This commit is contained in:
Tom Boullay
2026-05-14 16:13:32 +02:00
parent d376d0ba6b
commit dba7aec6fa
3 changed files with 41 additions and 3 deletions
+3 -1
View File
@@ -30,7 +30,9 @@ function extractVegetationData(mapNodes: MapNode[]): VegetationData {
if (!config.enabled) continue;
const instances = mapNodes
.filter((node) => node.name === config.mapName)
.filter(
(node) => node.name === config.mapName && node.type === "Object3D",
)
.map(mapNodeToInstance);
if (instances.length > 0) {