Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

Commit 16a2ca7

Browse files
committed
workaround bad aurionchat conversion
1 parent 30f210b commit 16a2ca7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/core/main/java/com/ampznetwork/chatmod/core/module/impl/LinkToDiscordModule.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ public void relayInbound(ChatMessagePacket packet) {
147147
.setContent(override(DefaultPlaceholder.MESSAGE, switch (packet.getPacketType()) {
148148
case CHAT -> {
149149
var sb = new StringBuilder();
150-
COMPONENT_TO_MARKDOWN.flatten(packet.getMessage().getText(), sb::append);
150+
COMPONENT_TO_MARKDOWN.flatten(text(packet.getMessage().getMessageString()),
151+
sb::append);
151152
yield sb.toString();
152153
}
153154
case JOIN, LEAVE -> Util.Kyori.sanitizePlain(DEFAULT_CONTEXT.apply(mod,

0 commit comments

Comments
 (0)