mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
Update for event changes
This commit is contained in:
1 file changed
+1
-1
@@ -56,7 +56,7 @@ public final class CarbonEventHandlerImpl implements CarbonEventHandler {
|
||||
private final EventRegistry<CarbonEvent> eventRegistry = new SimpleEventRegistry<>(CarbonEvent.class);
|
||||
private final EventBus<CarbonEvent> eventBus = new SimpleEventBus<>(this.eventRegistry, this::onException);
|
||||
|
||||
private <E> void onException(final EventSubscription<E> subscription, final E event, final Throwable throwable) {
|
||||
private <E> void onException(final EventBus<? super E> eventBus, final EventSubscription<? super E> subscription, final E event, final Throwable throwable) {
|
||||
final Object subscriber = subscription.subscriber() instanceof SubscriberWrapper<?> wrapped
|
||||
? wrapped.carbon
|
||||
: subscription.subscriber();
|
||||
|
||||
Reference in new issue
Block a user