aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webAO/client/setEmote.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/webAO/client/setEmote.ts b/webAO/client/setEmote.ts
index 161eb51..f4fbdbb 100644
--- a/webAO/client/setEmote.ts
+++ b/webAO/client/setEmote.ts
@@ -28,7 +28,7 @@ const setEmote = async (
for (const extension of extensionsMap) {
// Hides all sprites before creating a new sprite
- if (client.viewport.lastChar !== client.viewport.chatmsg.name) {
+ if (client.viewport.getLastCharacter() !== client.viewport.getChatmsg().name) {
emoteSelector.src = transparentPng;
}
let url;