Skip to content

Commit

Permalink
fixed hud default elements not working (#4634)
Browse files Browse the repository at this point in the history
  • Loading branch information
19MisterX98 authored Jun 12, 2024
1 parent 94ee5c6 commit f08df5c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,14 @@ private void resetToDefaultElementsImpl() {
@EventHandler
private void onTick(TickEvent.Post event) {
if (Utils.isLoading()) return;
if (!(active || HudEditorScreen.isOpen())) return;

if (resetToDefaultElements) {
resetToDefaultElementsImpl();
resetToDefaultElements = false;
}

if (!(active || HudEditorScreen.isOpen())) return;

for (HudElement element : elements) {
if (element.isActive()) element.tick(HudRenderer.INSTANCE);
}
Expand Down

0 comments on commit f08df5c

Please sign in to comment.