diff --git a/backend/mirai-console/src/MiraiConsoleImplementation.kt b/backend/mirai-console/src/MiraiConsoleImplementation.kt index 7a2417b56..34b3fb3b0 100644 --- a/backend/mirai-console/src/MiraiConsoleImplementation.kt +++ b/backend/mirai-console/src/MiraiConsoleImplementation.kt @@ -239,13 +239,7 @@ public interface MiraiConsoleImplementation : CoroutineScope { * @throws IllegalStateException 当前端实例不是 `this` 时抛出 */ public val backendAccess: BackendAccess - get() { - if (instanceInitialized) { - if (this === instance) - return backendAccessInstance - } - throw IllegalStateException("Permission denied") - } + get() = backendAccessInstance public companion object { private val backendAccessInstance = object : BackendAccess {