From 3d9c682d7c6b2495a2ca062c8aea85ba2230b58e Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Tue, 3 Feb 2026 21:51:53 +0100 Subject: [PATCH] Fix surfaces with underscore in the name --- plugins/minimap/controller.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/plugins/minimap/controller.ts b/plugins/minimap/controller.ts index b4d38327..f44d6ff8 100644 --- a/plugins/minimap/controller.ts +++ b/plugins/minimap/controller.ts @@ -533,13 +533,17 @@ export class ControllerPlugin extends BaseControllerPlugin { const forces = new Set(); for (const file of files) { - if (file.endsWith(".bin")) { - const parts = file.split("_"); - if (parts.length === 5) { - surfaces.add(parts[1]); - forces.add(parts[2]); - } + if (!file.endsWith(".bin")) { + continue; } + + const meta = this.parseTileKey(file); + if (!meta) { + continue; + } + + surfaces.add(meta.surface); + forces.add(meta.force); } res.json({