From ed0ed731c2a7a2c8e3537f100bbf22a401263cf4 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Tue, 21 Jun 2022 22:11:09 +0800 Subject: Fix no stacks are being filtered --- .../java/me/shedaniel/rei/impl/common/entry/type/EntryRegistryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/type/EntryRegistryImpl.java b/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/type/EntryRegistryImpl.java index fa62b2bbb..ea8b73015 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/type/EntryRegistryImpl.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/common/entry/type/EntryRegistryImpl.java @@ -78,13 +78,13 @@ public class EntryRegistryImpl implements EntryRegistry { registryList = new ReloadingEntryRegistryList(); entriesHash = new LongOpenHashSet(); preFilteredList = new PreFilteredEntryList(this); + listeners.add(preFilteredList); reloading = true; } @Override public void endReload() { reloading = false; - preFilteredList = new PreFilteredEntryList(this); if (!(registryList instanceof ReloadingEntryRegistryList)) { throw new IllegalStateException("Expected ReloadingEntryRegistryList, got " + registryList.getClass().getName()); } -- cgit