mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-05 18:32:28 +01:00
Ensure that child also invalidate events
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
1b13a46d74
commit
d56479d316
@ -220,6 +220,10 @@ class EventNodeImpl<T extends Event> implements EventNode<T> {
|
||||
for (Class<? extends T> eventType : listenerMap.keySet()) {
|
||||
node.invalidateEvent(eventType);
|
||||
}
|
||||
// TODO bindings?
|
||||
for (EventNodeImpl<T> child : children) {
|
||||
child.invalidateEventsFor(node);
|
||||
}
|
||||
}
|
||||
|
||||
private void invalidateEvent(Class<? extends T> eventClass) {
|
||||
|
Loading…
Reference in New Issue
Block a user