diff options
| author | stonedDiscord <Tukz@gmx.de> | 2026-02-11 12:28:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-11 12:28:49 +0100 |
| commit | 8e7af5b93009c987a4c0c3fef014cf7b64463e03 (patch) | |
| tree | 04b0c383ca35962dc3054ec7ace34bb64f019622 /webAO/packets/handlers/handlePV.ts | |
| parent | 726d89ce8605d27be1c14bba59f81cfd6254ccb3 (diff) | |
| parent | 5bb35a981e2f35df7fbf126faa8655ee3b3ca142 (diff) | |
Merge pull request #293 from OmniTroid/better-charloading
Better charloading
Diffstat (limited to 'webAO/packets/handlers/handlePV.ts')
| -rw-r--r-- | webAO/packets/handlers/handlePV.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webAO/packets/handlers/handlePV.ts b/webAO/packets/handlers/handlePV.ts index a39a4dd..1ee13c8 100644 --- a/webAO/packets/handlers/handlePV.ts +++ b/webAO/packets/handlers/handlePV.ts @@ -3,6 +3,7 @@ import fileExists from "../../utils/fileExists"; import { updateActionCommands } from "../../dom/updateActionCommands"; import { pickEmotion } from "../../dom/pickEmotion"; import { AO_HOST } from "../../client/aoHost"; +import { ensureCharIni } from "../../client/handleCharacterInfo"; function addEmoteButton(i: number, imgurl: string, desc: string) { const emotesList = document.getElementById("client_emo"); @@ -34,7 +35,7 @@ export const handlePV = async (args: string[]) => { const emotesList = document.getElementById("client_emo"); emotesList.style.display = ""; emotesList.innerHTML = ""; // Clear emote box - const ini = me.inifile; + const ini = await ensureCharIni(client.charID); me.side = ini.options.side; updateActionCommands(me.side); if (ini.emotions.number === 0) { |
