Fix surfaces with underscore in the name

This commit is contained in:
Danielv123 committed 2026-02-03 21:51:53 +01:00
1 parent b0fd90d273
commit 3d9c682d7c
1 file changed
+10 -6
+10 -6
View File
@@ -533,13 +533,17 @@ export class ControllerPlugin extends BaseControllerPlugin {
const forces = new Set<string>();
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({