mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 15:40:28 +08:00
Don't require plugin to be enabled when registering extensions
This commit is contained in:
parent
fac66583ed
commit
6af2094b8f
@ -38,7 +38,7 @@ public open class AbstractExtensionPoint<T : Extension>(
|
||||
@Synchronized
|
||||
@ConsoleExperimentalAPI
|
||||
public fun registerExtension(plugin: Plugin, extension: T) {
|
||||
require(plugin.isEnabled) { "Plugin $plugin must be enabled before registering an extension." }
|
||||
// require(plugin.isEnabled) { "Plugin $plugin must be enabled before registering an extension." }
|
||||
instances.add(ExtensionRegistry(plugin, extension))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user