Re-enabled tests, disabled ready check for events

This commit is contained in:
lieght
2025-09-10 21:30:21 +02:00
parent f760c37b8a
commit c8ab560626
2 changed files with 53 additions and 53 deletions

View File

@@ -97,9 +97,9 @@ public enum GlobalEventBus {
public static <T> void post(T event) {
Class<T> type = (Class<T>) event.getClass();
if (!EventRegistry.isReady(type)) {
throw new IllegalStateException("Event type not ready: " + type.getSimpleName());
}
// if (!EventRegistry.isReady(type)) {
// throw new IllegalStateException("Event type not ready: " + type.getSimpleName());
// } TODO: Handling non ready events.
// store in registry
EventMeta<T> eventMeta = new EventMeta<>(type, event);