diff --git a/tags/guide/chat.ytag b/tags/guide/chat.ytag index 6199c2b..e3b7f4a 100644 --- a/tags/guide/chat.ytag +++ b/tags/guide/chat.ytag @@ -32,5 +32,5 @@ We can also manually add messages to the chat. These messsages will not be sent to the server or other players, but will be displayed locally in the hud. ```java -Minecraft.getInstance().getChatListener().handleSystemMessage(Component.literal("This is a virtual message")); +Minecraft.getInstance().gui.chatListener().handleSystemMessage(Component.literal("This is a virtual message"), false); ```