mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
Remove CarbonEventConfig
This commit is contained in:
1 parent
9cb0795379
commit
29505dd0ed
1 file changed
+1
-5
@@ -71,7 +71,7 @@ public final class CarbonEventHandlerImpl implements CarbonEventHandler {
|
|||||||
final boolean acceptsCancelled,
|
final boolean acceptsCancelled,
|
||||||
final Consumer<T> consumer
|
final Consumer<T> consumer
|
||||||
) {
|
) {
|
||||||
final EventConfig eventConfig = new CarbonEventConfig(order, acceptsCancelled, false);
|
final EventConfig eventConfig = EventConfig.defaults().order(order).acceptsCancelled(acceptsCancelled);
|
||||||
return this.eventRegistry.subscribe(eventClass, eventConfig, consumer::accept);
|
return this.eventRegistry.subscribe(eventClass, eventConfig, consumer::accept);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -80,8 +80,4 @@ public final class CarbonEventHandlerImpl implements CarbonEventHandler {
|
|||||||
this.eventBus.post(event);
|
this.eventBus.post(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
private record CarbonEventConfig(int order, boolean acceptsCancelled, boolean exact) implements EventConfig {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user