Skip to content

Commit

Permalink
Fix JEI not syncing initially upon terminal re-open
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Apr 8, 2024
1 parent 554f8f2 commit 51b5579
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ public void containerTick() {
super.containerTick();
if (!initialized && getSelectedClientTab().isPresent()) {
initialized = true;
fieldSearch.setValue(getSelectedClientTab().get().getInstanceFilter(getMenu().getSelectedChannel()));
String filter = getSelectedClientTab().get().getInstanceFilter(getMenu().getSelectedChannel());
if (filter != null && !"".equals(filter)) {
fieldSearch.setValue(filter);
getSelectedClientTab().get().setInstanceFilter(getMenu().getSelectedChannel(), filter); // Forces event to be sent
}
}
fieldSearch.tick();
}
Expand Down

0 comments on commit 51b5579

Please sign in to comment.