diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfigEditor.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfigEditor.java b/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfigEditor.java index 677e5822..2b12118c 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfigEditor.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfigEditor.java @@ -225,13 +225,19 @@ public class NEUConfigEditor extends GuiElement { if (searchedOptions == null) { searchedOptions = new HashSet<>(); } else { + Set<ConfigProcessor.ProcessedOption> searchedOptions2 = new HashSet<>(); for (ConfigProcessor.ProcessedOption option : searchedOptions) { ConfigProcessor.ProcessedCategory cat = categoryForOption.get(option); if (cat == null) continue; searchedCategories.add(cat); + for (ConfigProcessor.ProcessedOption catOption : cat.options.values()) { + if (catOption.accordionId == -1 || option.accordionId == -1) continue; + if (catOption.accordionId == option.accordionId) searchedOptions2.add(catOption); + } searchedAccordions.computeIfAbsent(cat, k -> new HashSet<>()).add(option.accordionId); } + searchedOptions.addAll(searchedOptions2); } } } |