From b1216845faacde4336e234746b8314884746d1c9 Mon Sep 17 00:00:00 2001 From: MachieCodes Date: Tue, 14 Jan 2025 14:40:54 -0600 Subject: [PATCH] Second Fix Courtesy of Crosby, force hud elements to be rendered/ticked properly if the hud editor is open --- .../meteordevelopment/meteorclient/systems/hud/Hud.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/meteordevelopment/meteorclient/systems/hud/Hud.java b/src/main/java/meteordevelopment/meteorclient/systems/hud/Hud.java index 379bae7448..acfa3ada07 100644 --- a/src/main/java/meteordevelopment/meteorclient/systems/hud/Hud.java +++ b/src/main/java/meteordevelopment/meteorclient/systems/hud/Hud.java @@ -217,7 +217,9 @@ private void onTick(TickEvent.Post event) { if (!(active || HudEditorScreen.isOpen())) return; for (HudElement element : elements) { - element.tick(HudRenderer.INSTANCE); + if (element.isActive() || element.isInEditor()) { + element.tick(HudRenderer.INSTANCE); + } } } @@ -233,7 +235,9 @@ private void onRender(Render2DEvent event) { for (HudElement element : elements) { element.updatePos(); - if (element.isActive()) element.render(HudRenderer.INSTANCE); + if (element.isActive() || element.isInEditor()) { + element.render(HudRenderer.INSTANCE); + } } HudRenderer.INSTANCE.end();