diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-06-28 17:29:26 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-06-28 17:29:26 +0700 |
commit | e85b11665a92e8a6bffb11b76b45ee3c97138bd2 (patch) | |
tree | 1e85d3673d6511df53b96deb8fc23989cd304722 /src/main/java/cc/polyfrost/oneconfig/internal | |
parent | 61861be3663dc05883c387070c81eae9154444ef (diff) | |
download | OneConfig-e85b11665a92e8a6bffb11b76b45ee3c97138bd2.tar.gz OneConfig-e85b11665a92e8a6bffb11b76b45ee3c97138bd2.tar.bz2 OneConfig-e85b11665a92e8a6bffb11b76b45ee3c97138bd2.zip |
revert funny diamond hud stuff
add ExcludeType again
fix INSTANCE field stuff
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/internal')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/internal/config/core/ConfigCore.java | 4 | ||||
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/internal/hud/HudCore.java | 13 |
2 files changed, 3 insertions, 14 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/internal/config/core/ConfigCore.java b/src/main/java/cc/polyfrost/oneconfig/internal/config/core/ConfigCore.java index 3057c4f..90c1062 100644 --- a/src/main/java/cc/polyfrost/oneconfig/internal/config/core/ConfigCore.java +++ b/src/main/java/cc/polyfrost/oneconfig/internal/config/core/ConfigCore.java @@ -12,14 +12,14 @@ import java.util.TimerTask; import java.util.stream.Collectors; public class ConfigCore { - /*static { + static { new Timer().scheduleAtFixedRate(new TimerTask() { @Override public void run() { saveAll(); } }, 30000, 30000); - }*/ + } public static List<Mod> oneConfigMods = new ArrayList<>(); public static void saveAll() { 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 79bf4d8..7912ec5 100644 --- a/src/main/java/cc/polyfrost/oneconfig/internal/hud/HudCore.java +++ b/src/main/java/cc/polyfrost/oneconfig/internal/hud/HudCore.java @@ -1,11 +1,9 @@ package cc.polyfrost.oneconfig.internal.hud; import cc.polyfrost.oneconfig.events.event.HudRenderEvent; -import cc.polyfrost.oneconfig.events.event.TickEvent; import cc.polyfrost.oneconfig.hud.Hud; -import cc.polyfrost.oneconfig.hud.TextHud; -import cc.polyfrost.oneconfig.libs.universal.UResolution; import cc.polyfrost.oneconfig.libs.eventbus.Subscribe; +import cc.polyfrost.oneconfig.libs.universal.UResolution; import java.util.ArrayList; @@ -21,13 +19,4 @@ public class HudCore { hud.drawAll(hud.getXScaled(UResolution.getScaledWidth()), hud.getYScaled(UResolution.getScaledHeight()), hud.scale, true); } } - - @Subscribe - public void onTick(TickEvent event) { - for (Hud hud : huds) { - if (hud instanceof TextHud) { - ((TextHud) hud).tick(); - } - } - } } |