diff options
| author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-10 17:17:38 +0200 |
|---|---|---|
| committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-10 17:17:38 +0200 |
| commit | 5911d7be04be37bf1c7e781daf0c3031e3af7e94 (patch) | |
| tree | be36e3effcd873bb0172ad5d18c88b476ac1d527 /src/main/java/cc/polyfrost/oneconfig/utils | |
| parent | 1394e5344582ee05f31fb491c2cf2b0d160c3201 (diff) | |
| parent | 3aa1e46c963a015906e72d7ae0b4f2ba6a0dbc58 (diff) | |
| download | OneConfig-5911d7be04be37bf1c7e781daf0c3031e3af7e94.tar.gz OneConfig-5911d7be04be37bf1c7e781daf0c3031e3af7e94.tar.bz2 OneConfig-5911d7be04be37bf1c7e781daf0c3031e3af7e94.zip | |
Merge branch 'master' of github.com:Polyfrost/OneConfig
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/utils')
3 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/utils/TickDelay.java b/src/main/java/cc/polyfrost/oneconfig/utils/TickDelay.java index 7b6be2c..6cda00c 100644 --- a/src/main/java/cc/polyfrost/oneconfig/utils/TickDelay.java +++ b/src/main/java/cc/polyfrost/oneconfig/utils/TickDelay.java @@ -13,7 +13,7 @@ public class TickDelay { private int delay; public TickDelay(Runnable functionName, int ticks) { - EventManager.INSTANCE.register(this); + EventManager.getEventManager().register(this); delay = ticks; function = functionName; } @@ -24,7 +24,7 @@ public class TickDelay { // Delay expired if (delay < 1) { function.run(); - EventManager.INSTANCE.unregister(this); + EventManager.getEventManager().unregister(this); } delay--; } diff --git a/src/main/java/cc/polyfrost/oneconfig/utils/gui/GuiUtils.java b/src/main/java/cc/polyfrost/oneconfig/utils/gui/GuiUtils.java index 973e003..c80814f 100644 --- a/src/main/java/cc/polyfrost/oneconfig/utils/gui/GuiUtils.java +++ b/src/main/java/cc/polyfrost/oneconfig/utils/gui/GuiUtils.java @@ -17,7 +17,7 @@ public final class GuiUtils { private static long deltaTime = 17L; static { - EventManager.INSTANCE.register(new GuiUtils()); + EventManager.getEventManager().register(new GuiUtils()); } /** diff --git a/src/main/java/cc/polyfrost/oneconfig/utils/hypixel/HypixelUtils.java b/src/main/java/cc/polyfrost/oneconfig/utils/hypixel/HypixelUtils.java index a952053..36dc46c 100644 --- a/src/main/java/cc/polyfrost/oneconfig/utils/hypixel/HypixelUtils.java +++ b/src/main/java/cc/polyfrost/oneconfig/utils/hypixel/HypixelUtils.java @@ -123,7 +123,7 @@ public class HypixelUtils { previousLocraw = parsed; inGame = true; // If your gamemode does not return "lobby", boolean inGame is true. } - EventManager.INSTANCE.post(new LocrawEvent(locraw)); + EventManager.getEventManager().post(new LocrawEvent(locraw)); event.isCancelled = true; } } catch (Exception ex) { |
