mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +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(
|
await Promise.all(
|
||||||
boosterFiles.map(async (file) => {
|
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 = (
|
const sizes = (
|
||||||
await readStringDVPL(`${DATA}/${POI.boosterIcons}/${file}`)
|
await readStringDVPL(`${DATA}/${POI.boosterIcons}/${file}`)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user