Deal with others replacing the chat gui

This commit is contained in:
ZacSharp 2022-05-20 01:31:09 +02:00 committed by GitHub
parent cbef05838d
commit 221eba11dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1124,7 +1124,7 @@ public final class Settings {
* via {@link Consumer#andThen(Consumer)} or it can completely be overriden via setting * via {@link Consumer#andThen(Consumer)} or it can completely be overriden via setting
* {@link Setting#value}; * {@link Setting#value};
*/ */
public final Setting<Consumer<ITextComponent>> logger = new Setting<>(Minecraft.getMinecraft().ingameGUI.getChatGUI()::printChatMessage); public final Setting<Consumer<ITextComponent>> logger = new Setting<>(msg -> Minecraft.getMinecraft().ingameGUI.getChatGUI().printChatMessage(msg));
/** /**
* The function that is called when Baritone will send a desktop notification. This function can be added to * The function that is called when Baritone will send a desktop notification. This function can be added to