Reverted change

This commit is contained in:
Bertie690 2025-07-22 15:58:02 -04:00
parent 6bc5d15f62
commit fd8d593e5b

View File

@ -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();
} });
} }
/** /**