Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
arlomcwalter committed Apr 25, 2021
1 parent 3e679d5 commit 4a253b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/minegame159/meteorclient/MeteorClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public void onInitializeClient() {
Blur.init();
Tabs.init();
GuiThemes.init();
BlockUtils.init();

// Register categories
Modules.REGISTERING_CATEGORIES = true;
Expand All @@ -130,8 +131,6 @@ public void onInitializeClient() {

GuiRenderer.init();
GuiThemes.postInit();

EVENT_BUS.subscribe(BlockUtils.class);
}

private void openClickGui() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -31,6 +32,10 @@ public class BlockUtils {

public static final Map<Integer, BlockBreakingInfo> breakingBlocks = new HashMap<>();

public static void init() {
MeteorClient.EVENT_BUS.subscribe(BlockUtils.class);
}

@EventHandler
private void onGameLeft(GameLeftEvent event) {
breakingBlocks.clear();
Expand Down

1 comment on commit 4a253b5

@AstroOrbis
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gura moment

Please sign in to comment.