diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-07-04 15:33:26 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-07-04 15:33:26 +0200 |
commit | 76c85b82bd0dba4dfdffc136a4d4f8cb45cb45f3 (patch) | |
tree | 6f8cf9be5e0bfd672b92ad0bc87b3c40ff1ada36 /src/main/java/cc/polyfrost/oneconfig/internal | |
parent | 5c51b22ee6ebd2b286603ff2f0dc5799963ab4c3 (diff) | |
download | OneConfig-76c85b82bd0dba4dfdffc136a4d4f8cb45cb45f3.tar.gz OneConfig-76c85b82bd0dba4dfdffc136a4d4f8cb45cb45f3.tar.bz2 OneConfig-76c85b82bd0dba4dfdffc136a4d4f8cb45cb45f3.zip |
hud stuff
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/internal')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/internal/hud/HudCore.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/internal/hud/HudCore.java b/src/main/java/cc/polyfrost/oneconfig/internal/hud/HudCore.java index 2bbd3b7..31604ed 100644 --- a/src/main/java/cc/polyfrost/oneconfig/internal/hud/HudCore.java +++ b/src/main/java/cc/polyfrost/oneconfig/internal/hud/HudCore.java @@ -15,8 +15,8 @@ public class HudCore { public void onRender(HudRenderEvent event) { if (editing) return; for (Hud hud : huds) { - if (hud.enabled) - hud.drawAll(event.matrices, hud.getXScaled(UResolution.getScaledWidth()), hud.getYScaled(UResolution.getScaledHeight()), hud.scale, true); + if (!hud.isEnabled()) continue; + hud.drawAll(event.matrices, hud.getXScaled(UResolution.getScaledWidth()), hud.getYScaled(UResolution.getScaledHeight()), hud.scale, true); } } } |