feat: safer unknown component handling

This commit is contained in:
TrèsAbhi committed 2024-01-20 23:20:00 -06:00
1 parent 001b0c356f
commit d0d28baee0
3 files changed
+26 -19

No files matched your search

+5
View File
@@ -26,6 +26,11 @@ export async function buildTankModels(production: boolean) {
for (const nationIndex in nations) {
const changes: FileChange[] = [];
const nation = nations[nationIndex];
if (['china', 'european', 'france', 'germany', 'japan'].includes(nation)) {
continue;
}
const tanks = await readXMLDVPL<{ root: VehicleDefinitionList }>(
`${DATA}/${POI.vehicleDefinitions}/${nation}/list.xml.dvpl`,
);