mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-14 07:10:09 +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()
|
}.getOrNull()
|
||||||
|
|
||||||
private fun Constructor<out PluginBase>.againstPermission() {
|
private fun Constructor<out PluginBase>.againstPermission() {
|
||||||
trySetAccessibleMethod?.let { it.invoke(this, true) }
|
kotlin.runCatching {
|
||||||
|
trySetAccessibleMethod?.let { it.invoke(this) }
|
||||||
?: kotlin.runCatching {
|
?: kotlin.runCatching {
|
||||||
@Suppress("DEPRECATED")
|
@Suppress("DEPRECATED")
|
||||||
this.isAccessible = true
|
this.isAccessible = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user