mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-11 01:49:29 +02:00
Reverted change
This commit is contained in:
parent
6bc5d15f62
commit
fd8d593e5b
@ -711,16 +711,16 @@ export class BattleScene extends SceneBase {
|
|||||||
if (expSpriteKeys.size > 0) {
|
if (expSpriteKeys.size > 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const res = await this.cachedFetch("./exp-sprites.json");
|
this.cachedFetch("./exp-sprites.json")
|
||||||
const keys = await res.json();
|
.then(res => res.json())
|
||||||
if (!Array.isArray(keys)) {
|
.then(keys => {
|
||||||
throw new Error("EXP Sprites were not array when fetched!");
|
if (Array.isArray(keys)) {
|
||||||
}
|
for (const key of keys) {
|
||||||
|
expSpriteKeys.add(key);
|
||||||
// TODO: Optimize this
|
}
|
||||||
for (const k of keys) {
|
}
|
||||||
expSpriteKeys.add(k);
|
Promise.resolve();
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user