diff --git a/src/main/java/minegame159/meteorclient/MeteorClient.java b/src/main/java/minegame159/meteorclient/MeteorClient.java index ffa033e907..bd6792a0ae 100644 --- a/src/main/java/minegame159/meteorclient/MeteorClient.java +++ b/src/main/java/minegame159/meteorclient/MeteorClient.java @@ -104,6 +104,7 @@ public void onInitializeClient() { Blur.init(); Tabs.init(); GuiThemes.init(); + BlockUtils.init(); // Register categories Modules.REGISTERING_CATEGORIES = true; @@ -130,8 +131,6 @@ public void onInitializeClient() { GuiRenderer.init(); GuiThemes.postInit(); - - EVENT_BUS.subscribe(BlockUtils.class); } private void openClickGui() { diff --git a/src/main/java/minegame159/meteorclient/utils/world/BlockUtils.java b/src/main/java/minegame159/meteorclient/utils/world/BlockUtils.java index c88edb44f8..4d7a976cb9 100644 --- a/src/main/java/minegame159/meteorclient/utils/world/BlockUtils.java +++ b/src/main/java/minegame159/meteorclient/utils/world/BlockUtils.java @@ -6,6 +6,7 @@ package minegame159.meteorclient.utils.world; import meteordevelopment.orbit.EventHandler; +import minegame159.meteorclient.MeteorClient; import minegame159.meteorclient.events.game.GameLeftEvent; import minegame159.meteorclient.mixininterface.IVec3d; import minegame159.meteorclient.utils.player.Rotations; @@ -31,6 +32,10 @@ public class BlockUtils { public static final Map breakingBlocks = new HashMap<>(); + public static void init() { + MeteorClient.EVENT_BUS.subscribe(BlockUtils.class); + } + @EventHandler private void onGameLeft(GameLeftEvent event) { breakingBlocks.clear();