hide ui when f3 is open

This commit is contained in:
Lee 2023-03-08 00:39:36 +00:00
parent 2dda3f17e3
commit 22f69ea5a0

View File

@ -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;