From 7438446f9f02c6bf47af7ce2acf65cbd71fcda42 Mon Sep 17 00:00:00 2001 From: c0nstexpr <976999484@qq.com> Date: Sat, 6 Jul 2024 16:09:51 +0800 Subject: [PATCH] feat(fabric-api): make MCCoroutineExceptionEvent to be SAM make MCCoroutineExceptionEvent to be a functional interface for kotlin --- .../shynixn/mccoroutine/fabric/MCCoroutineExceptionEvent.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mccoroutine-fabric-api/src/main/java/com/github/shynixn/mccoroutine/fabric/MCCoroutineExceptionEvent.kt b/mccoroutine-fabric-api/src/main/java/com/github/shynixn/mccoroutine/fabric/MCCoroutineExceptionEvent.kt index e4bf133..1a00e7c 100644 --- a/mccoroutine-fabric-api/src/main/java/com/github/shynixn/mccoroutine/fabric/MCCoroutineExceptionEvent.kt +++ b/mccoroutine-fabric-api/src/main/java/com/github/shynixn/mccoroutine/fabric/MCCoroutineExceptionEvent.kt @@ -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 = EventFactory.createArrayBacked(MCCoroutineExceptionEvent::class.java) { listeners ->