fix: update to new api

This commit is contained in:
TrèsAbhi committed 2026-04-01 21:40:15 -05:00
1 parent 34ee954502
commit 3a9af7505f
17 files changed
+104 -99

No files matched your search

@@ -12,9 +12,9 @@ export async function tankModels() {
using uploader = new AssetUploader("tank models");
const nodeIO = new NodeIO().registerExtensions(ALL_EXTENSIONS);
const nations = vfs
const nations = await vfs
.dir(`Data/XML/item_defs/vehicles`)
.filter((nation) => nation !== "common");
.then((files) => files.filter((nation) => nation !== "common"));
for (const nationIndex in nations) {
const nation = nations[nationIndex];
@@ -41,4 +41,4 @@ export async function tankModels() {
}
await uploader.flush();
}
}