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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user