Skip to content

Commit

Permalink
feat(fabric-api): make MCCoroutineExceptionEvent to be SAM
Browse files Browse the repository at this point in the history
make MCCoroutineExceptionEvent to be a functional interface for kotlin
  • Loading branch information
c0nstexpr authored Jul 6, 2024
1 parent ca5e27b commit 7438446
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import net.fabricmc.fabric.api.event.EventFactory
* Cancelling this exception causes the error to not get logged and offers to possibility for custom logging.
*/
@FunctionalInterface
interface MCCoroutineExceptionEvent {
fun interface MCCoroutineExceptionEvent {
companion object {
val EVENT: Event<MCCoroutineExceptionEvent> =
EventFactory.createArrayBacked(MCCoroutineExceptionEvent::class.java) { listeners ->
Expand Down

0 comments on commit 7438446

Please sign in to comment.