Browse Source

Merge pull request #3463 from ZacSharp/patch-8

Deal with others replacing the chat gui
master
Leijurv 1 month ago committed by GitHub
parent
commit
17a2aa42e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/api/java/baritone/api/Settings.java

2
src/api/java/baritone/api/Settings.java

@ -1124,7 +1124,7 @@ public final class Settings {
* via {@link Consumer#andThen(Consumer)} or it can completely be overriden via setting
* {@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

Loading…
Cancel
Save