Skip to content

Commit 89e87a1

Browse files
committed
Fixed client lag spikes on collapse/expand.
Collapsed and expand invalidated the filter cache causing client lag spikes.
1 parent f036d80 commit 89e87a1

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/main/java/mezz/jei/ingredients/IngredientFilter.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,8 @@ public void addCollapsedStateListener(Runnable listener) {
434434
collapsedStateListeners.add(listener);
435435
}
436436

437-
/**
438-
* Called when a group is expanded or collapsed. Invalidates the cached collapsed list
439-
* and notifies only collapsed-state listeners (preserves the current page position).
440-
*/
441437
public void notifyCollapsedStateChanged() {
442-
this.filterCached = null;
438+
// Do NOT null filterCached here. Creates client lag spikes.
443439
for (Runnable listener : collapsedStateListeners) {
444440
listener.run();
445441
}

0 commit comments

Comments
 (0)