fix NPCs sending message showing raw html

This commit is contained in:
Evan
2024-12-30 14:07:22 -08:00
parent c4061e8848
commit c1f78e0e3b
+5 -4
View File
@@ -320,6 +320,7 @@ export class EventsDisplay extends LitElement implements Layer {
if (event.message.recipient === myPlayer) {
this.addEvent({
description: `${event.message.sender.displayName()}:${event.message.emoji}`,
unsafeDescription: true,
type: MessageType.INFO,
highlight: true,
createdAt: this.game.ticks(),
@@ -353,10 +354,10 @@ export class EventsDisplay extends LitElement implements Layer {
<button
class="${btn.className}"
@click=${() => {
btn.action();
this.removeEvent(index);
this.requestUpdate()
}}
btn.action();
this.removeEvent(index);
this.requestUpdate()
}}
>
${btn.text}
</button>