Added the ability to tune the logger

This commit is contained in:
Bas de Jong
2025-09-17 23:40:55 +02:00
parent 26590e1939
commit 0cc57f558d
4 changed files with 69 additions and 18 deletions

View File

@@ -54,9 +54,9 @@ public class GlobalEventBus {
return new Object() {
@Subscribe
public void handle(Object event) {
if (type.isInstance(event)) {
action.accept(type.cast(event));
}
if (type.isInstance(event)) {
action.accept(type.cast(event));
}
}
};
}
@@ -72,9 +72,9 @@ public class GlobalEventBus {
Object listener = new Object() {
@Subscribe
public void handle(Object event) {
if (type.isInstance(event)) {
action.accept(type.cast(event));
}
if (type.isInstance(event)) {
action.accept(type.cast(event));
}
}
};
var re = new EventMeta<>(type, listener);