mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Reassign after replacing...
This commit is contained in:
1 parent
c3df33f4b5
commit
b8ee341f9b
2 files changed
+1
-3
No files matched your search
@@ -200,7 +200,7 @@ public class SimpleChatChannel extends ChatChannel {
|
||||
Component formattedMessage = MiniMessageParser.parseFormat(messageFormat);
|
||||
|
||||
if (formattedMessage instanceof TextComponent && player.isOnline()) {
|
||||
((TextComponent) formattedMessage).replace(itemPattern, (input) -> {
|
||||
formattedMessage = ((TextComponent) formattedMessage).replace(itemPattern, (input) -> {
|
||||
return simpleChat.getItemStackUtils().createComponent(player.getPlayer()).toBuilder();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user