Skip to content

Commit

Permalink
post
Browse files Browse the repository at this point in the history
  • Loading branch information
MinRi2 committed Feb 9, 2024
1 parent ae19bbd commit fa97170
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/MinerTools/utils/ui/operator/ElementOperator.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class ElementOperator{
private static int touchEdge;

static{
Events.on(ResetEvent.class, e -> getVanillaElements());
Events.on(ResetEvent.class, e -> Core.app.post(ElementOperator::getVanillaElements));
}

private ElementOperator(){
Expand All @@ -71,11 +71,9 @@ private static void getVanillaElements(){
wavesTable = hudGroup.find("waves"),
minimap = hudGroup.find("minimap"),
position = hudGroup.find("position"),
coreInfo = Reflect.get(Vars.ui.hudfrag, "coreItems");
coreInfo = hudGroup.find("coreinfo");

Element coreInfoWrapper = coreInfo.parent;

vanillaElements.addAll(mainStack, wavesTable, minimap, position, coreInfoWrapper);
vanillaElements.addAll(mainStack, wavesTable, minimap, position, coreInfo);
}

private static void clearAlignLines(){
Expand Down

0 comments on commit fa97170

Please sign in to comment.