You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//perhaps, split this logic? maybe construct the ScalaPlugins from ScalaLoader's constructor
277
278
//and then, call scalaPlugin.onLoad() from ScalaLoader's onLoad() method.
278
279
280
+
//idea: create a ScalaPluginProvider? and register it at an EntrypointHandler? The problem in doing that is PluginFileType#guessType cannot guess our type :/
//this correctly takes dependencies and softdependencies into account, but not inverse dependencies. should I make the distinction between dependency graph and load graph?
if (paperPluginManager.getPlugin(scalaPlugin.getName()) == null) { //ensure idempotency
368
+
paperPluginManager.loadPlugin(scalaPlugin); //more like "registerPlugin" since PaperPluginInstanceManager.loadPlugin(Plugin) does not call Plugin.onLoad()!
369
+
//note that scalaPlugin.onLoad() has already been called!
0 commit comments