From 22f69ea5a0d39af9394f8cce9ac65851b40c06a7 Mon Sep 17 00:00:00 2001 From: liam Date: Wed, 8 Mar 2023 00:39:36 +0000 Subject: [PATCH] hide ui when f3 is open --- .../cc/fascinated/wildaddons/addon/impl/ui/OverlayAddon.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/cc/fascinated/wildaddons/addon/impl/ui/OverlayAddon.java b/src/main/java/cc/fascinated/wildaddons/addon/impl/ui/OverlayAddon.java index d943ffd..aceff23 100644 --- a/src/main/java/cc/fascinated/wildaddons/addon/impl/ui/OverlayAddon.java +++ b/src/main/java/cc/fascinated/wildaddons/addon/impl/ui/OverlayAddon.java @@ -29,7 +29,7 @@ public class OverlayAddon extends Addon { @Override public void onEnable() { HudRenderCallback.EVENT.register((matrixStack, somefloatidkwhatitdoes) -> { - if (!this.isEnabled()) { + if (!this.isEnabled() || Main.getMinecraftClient().options.debugEnabled) { // Check if module is enabled or, if f3 debug menu is open return; } int lastY = 5; @@ -45,8 +45,6 @@ public class OverlayAddon extends Addon { lastY += 11; renderer.drawWithShadow(matrixStack, "IP: " + PlayerUtils.getCurrentServerIp(), 5, lastY, 0xffffff); lastY += 11; - renderer.drawWithShadow(matrixStack, "Is Afk: " + !PlayerListener.isMoving(), 5, lastY, 0xffffff); - lastY += 13; renderer.drawWithShadow(matrixStack, "§7§nStatistics:", 5, lastY, 0xffffff); lastY += 11;