From 235a38f67b81713f1057c7f22b15656a348e6878 Mon Sep 17 00:00:00 2001 From: Tom Boullay Date: Mon, 25 May 2026 17:39:00 +0200 Subject: [PATCH] fix(map): disable generated paths while correcting mapping --- src/world/paths/PathSystem.tsx | 13 ++++++++++++- src/world/paths/pathConfig.ts | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/world/paths/PathSystem.tsx b/src/world/paths/PathSystem.tsx index ef50e4d..ea36a1e 100644 --- a/src/world/paths/PathSystem.tsx +++ b/src/world/paths/PathSystem.tsx @@ -1,8 +1,19 @@ import { InstancedMapAsset } from "@/world/map-instancing/InstancedMapAsset"; -import { PATH_TILE_MODEL_PATH } from "@/world/paths/pathConfig"; +import { + PATH_SYSTEM_ENABLED, + PATH_TILE_MODEL_PATH, +} from "@/world/paths/pathConfig"; import { usePathTileData } from "@/world/paths/usePathTileData"; export function PathSystem(): React.JSX.Element | null { + if (!PATH_SYSTEM_ENABLED) { + return null; + } + + return ; +} + +function PathTiles(): React.JSX.Element | null { const pathTiles = usePathTileData(); if (pathTiles.length === 0) { diff --git a/src/world/paths/pathConfig.ts b/src/world/paths/pathConfig.ts index 76627f2..510e092 100644 --- a/src/world/paths/pathConfig.ts +++ b/src/world/paths/pathConfig.ts @@ -1,6 +1,7 @@ import { TERRAIN_COLORS, TERRAIN_TILE_SIZE } from "@/data/world/terrainConfig"; export const PATH_SURFACE_KEY = "chemin"; +export const PATH_SYSTEM_ENABLED = false; export const PATH_TILE_MODEL_PATH = TERRAIN_COLORS.chemin.modelPath; export const PATH_TILE_SIZE = TERRAIN_COLORS.chemin.tileSize ?? TERRAIN_TILE_SIZE;