diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-06 14:54:56 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-06 14:54:56 +0200 |
commit | f4c6691b628cca146ddb44e77f54cb46387aa15d (patch) | |
tree | b20b519e654a472fdeeaa440939ac716e4ee1bf1 /src/main/java/cc/polyfrost/oneconfig/hud | |
parent | da3bf748fb4cca62236922fc35be50133b1bb96a (diff) | |
download | OneConfig-f4c6691b628cca146ddb44e77f54cb46387aa15d.tar.gz OneConfig-f4c6691b628cca146ddb44e77f54cb46387aa15d.tar.bz2 OneConfig-f4c6691b628cca146ddb44e77f54cb46387aa15d.zip |
internalizing
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/hud')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/hud/HudCore.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/hud/HudCore.java b/src/main/java/cc/polyfrost/oneconfig/hud/HudCore.java deleted file mode 100644 index c3e7f9b..0000000 --- a/src/main/java/cc/polyfrost/oneconfig/hud/HudCore.java +++ /dev/null @@ -1,21 +0,0 @@ -package cc.polyfrost.oneconfig.hud; - -import cc.polyfrost.oneconfig.events.event.HudRenderEvent; -import gg.essential.universal.UResolution; -import me.kbrewster.eventbus.Subscribe; - -import java.util.ArrayList; - -public class HudCore { - public static ArrayList<BasicHud> huds = new ArrayList<>(); - public static boolean editing = false; - - @Subscribe - public void onRender(HudRenderEvent event) { - if (editing) return; - for (BasicHud hud : huds) { - if (hud.enabled) - hud.drawAll(hud.getXScaled(UResolution.getScaledWidth()), hud.getYScaled(UResolution.getScaledHeight()), hud.scale, true); - } - } -} |