mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 19:04:49 +00:00
Re-enabled tests, disabled ready check for events
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user