mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Fix item linking
This commit is contained in:
1 parent
b8ee341f9b
commit
7150b4c755
3 files changed
+22
-52
No files matched your search
@@ -201,7 +201,7 @@ public class SimpleChatChannel extends ChatChannel {
|
||||
|
||||
if (formattedMessage instanceof TextComponent && player.isOnline()) {
|
||||
formattedMessage = ((TextComponent) formattedMessage).replace(itemPattern, (input) -> {
|
||||
return simpleChat.getItemStackUtils().createComponent(player.getPlayer()).toBuilder();
|
||||
return TextComponent.builder().append(simpleChat.getItemStackUtils().createComponent(player.getPlayer()));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user