feat: migrate booster icons

This commit is contained in:
TrèsAbhi committed 2024-06-22 17:46:25 -05:00
1 parent 02198f052d
commit c0b437f207
1 file changed
+4 -1
+4 -1
View File
@@ -17,7 +17,10 @@ export async function boosterIcons(production: boolean) {
await Promise.all(
boosterFiles.map(async (file) => {
const name = file.match(/booster_(.+).txt.dvpl/)![1];
const name = file.match(/booster_(.+).txt.dvpl/)?.[1];
if (name === undefined) return;
const sizes = (
await readStringDVPL(`${DATA}/${POI.boosterIcons}/${file}`)
)