diff --git a/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/internal/DeferredReusableInput.jvm.kt b/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/internal/DeferredReusableInput.jvm.kt index 8373e3543..94fda1183 100644 --- a/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/internal/DeferredReusableInput.jvm.kt +++ b/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/internal/DeferredReusableInput.jvm.kt @@ -5,7 +5,6 @@ import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import kotlinx.io.core.Input import net.mamoe.mirai.utils.FileCacheStrategy -import net.mamoe.mirai.utils.MiraiExperimentalAPI import java.awt.image.BufferedImage import java.net.URL @@ -45,5 +44,9 @@ internal actual class DeferredReusableInput actual constructor( return delegate?.writeTo(out) ?: error("DeferredReusableInput not yet initialized") } + override fun asInput(): Input { + return delegate?.asInput() ?: error("DeferredReusableInput not yet initialized") + } + actual val initialized: Boolean get() = delegate != null } \ No newline at end of file