mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +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()) {
|
for (Class<? extends T> eventType : listenerMap.keySet()) {
|
||||||
node.invalidateEvent(eventType);
|
node.invalidateEvent(eventType);
|
||||||
}
|
}
|
||||||
|
// TODO bindings?
|
||||||
|
for (EventNodeImpl<T> child : children) {
|
||||||
|
child.invalidateEventsFor(node);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void invalidateEvent(Class<? extends T> eventClass) {
|
private void invalidateEvent(Class<? extends T> eventClass) {
|
||||||
|
Loading…
Reference in New Issue
Block a user