mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: migrate booster icons
This commit is contained in:
1 parent
02198f052d
commit
c0b437f207
1 file changed
+4
-1
@@ -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}`)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user