diff --git a/src/main/java/meteordevelopment/meteorclient/mixin/MultiplayerScreenMixin.java b/src/main/java/meteordevelopment/meteorclient/mixin/MultiplayerScreenMixin.java index ba74b38a4e..cb586d4ce8 100644 --- a/src/main/java/meteordevelopment/meteorclient/mixin/MultiplayerScreenMixin.java +++ b/src/main/java/meteordevelopment/meteorclient/mixin/MultiplayerScreenMixin.java @@ -6,6 +6,7 @@ package meteordevelopment.meteorclient.mixin; import meteordevelopment.meteorclient.gui.GuiThemes; +import meteordevelopment.meteorclient.systems.config.Config; import meteordevelopment.meteorclient.systems.modules.Modules; import meteordevelopment.meteorclient.systems.modules.player.NameProtect; import meteordevelopment.meteorclient.systems.proxies.Proxies; @@ -48,6 +49,9 @@ public MultiplayerScreenMixin(Text title) { @Inject(method = "refreshWidgetPositions", at = @At("TAIL")) private void onInit(CallbackInfo info) { + if (!Config.get().showAccountManager.get()) + return; + textColor1 = Color.fromRGBA(255, 255, 255, 255); textColor2 = Color.fromRGBA(175, 175, 175, 255); @@ -77,6 +81,9 @@ private void onInit(CallbackInfo info) { public void render(DrawContext context, int mouseX, int mouseY, float deltaTicks) { super.render(context, mouseX, mouseY, deltaTicks); + if (!Config.get().showAccountManager.get()) + return; + int x = 3; int y = 3; diff --git a/src/main/java/meteordevelopment/meteorclient/systems/config/Config.java b/src/main/java/meteordevelopment/meteorclient/systems/config/Config.java index f8deb6eff2..580c6006cc 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/config/Config.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/config/Config.java @@ -166,6 +166,13 @@ public class Config extends System { .build() ); + public final Setting showAccountManager = sgMisc.add(new BoolSetting.Builder() + .name("show-account-manager") + .description("Render the account manager on the Multiplayer screen.") + .defaultValue(true) + .build() + ); + public List dontShowAgainPrompts = new ArrayList<>(); public Config() {