mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-12 14:00:12 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
828f1e6ec0
@ -307,9 +307,11 @@ private val trySetAccessibleMethod: Method? = runCatching {
|
||||
}.getOrNull()
|
||||
|
||||
private fun Constructor<out PluginBase>.againstPermission() {
|
||||
trySetAccessibleMethod?.let { it.invoke(this, true) }
|
||||
kotlin.runCatching {
|
||||
trySetAccessibleMethod?.let { it.invoke(this) }
|
||||
?: kotlin.runCatching {
|
||||
@Suppress("DEPRECATED")
|
||||
this.isAccessible = true
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user