Fix internalOnDisable

This commit is contained in:
Him188 2020-08-27 20:33:22 +08:00
parent f47d1915ab
commit 86025bdac7

View File

@ -80,7 +80,7 @@ internal abstract class JvmPluginInternal(
internal fun internalOnDisable() {
firstRun = false
kotlin.runCatching {
onLoad()
onDisable()
}.fold(
onSuccess = {
cancel(CancellationException("plugin disabled"))