We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49c8162 commit bb81df7Copy full SHA for bb81df7
src/main/java/net/minecraftforge/eventbus/ListenerList.java
@@ -121,6 +121,10 @@ private ListenerListInst() {}
121
private ListenerListInst(ListenerListInst parent) {
122
this.parent = parent;
123
this.parent.addChild(this);
124
+ // We set the NO_LISTENERS so we don't have to rebuild the listener list if nobody registers
125
+ // However the parent can have a listener registered before we know about the sub-class
126
+ if (this.parent.listeners != NO_LISTENERS)
127
+ this.listeners = null;
128
}
129
130
public void dispose() {
0 commit comments