emoji plugin: set message node message instead of rl format message

The replaced message has no rl-format tags, and using the rl-format message causes it to lose color whenever the message node is refreshed due to not containing any rl-format tags
This commit is contained in:
Cyborger1
2021-02-13 14:16:19 -05:00
committed by GitHub
parent 826f99679c
commit 496a28c9f9
2 changed files with 3 additions and 9 deletions

View File

@@ -89,7 +89,7 @@ public class EmojiPluginTest
emojiPlugin.onChatMessage(chatMessage);
verify(messageNode).setRuneLiteFormatMessage("<col=ff0000><img=0> <img=0> <img=0></col>");
verify(messageNode).setValue("<col=ff0000><img=0> <img=0> <img=0></col>");
}
@Test
@@ -113,7 +113,7 @@ public class EmojiPluginTest
emojiPlugin.onChatMessage(chatMessage);
verify(messageNode).setRuneLiteFormatMessage("<img=10>");
verify(messageNode).setValue("<img=10>");
}
@Test