mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: safer unknown component handling
This commit is contained in:
1 parent
001b0c356f
commit
d0d28baee0
3 files changed
+26
-19
No files matched your search
@@ -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`,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user