We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2754f0 commit 4d302ffCopy full SHA for 4d302ff
src/main/java/net/minecraftforge/eventbus/ListenerList.java
@@ -117,11 +117,13 @@ private ListenerListInst() {
117
118
public void dispose() {
119
writeLock.acquireUninterruptibly();
120
- for (@Nullable ArrayList<IEventListener> priority : priorities) {
121
- if (priority != null)
+ for (int i = 0; i < priorities.length; i++) {
+ @Nullable ArrayList<IEventListener> priority = priorities[i];
122
+ if (priority != null) {
123
priority.clear();
124
+ priorities[i] = null;
125
+ }
126
}
- Arrays.fill(priorities, null);
127
writeLock.release();
128
parent = null;
129
listeners = null;
0 commit comments