diff --git a/patches/server/Paper-Plugins.patch b/patches/server/Paper-Plugins.patch index 6bf32f50ea..784453d294 100644 --- a/patches/server/Paper-Plugins.patch +++ b/patches/server/Paper-Plugins.patch @@ -1867,6 +1867,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + return this.dependencies.contains(pluginIdentifier); + } + ++ // Used by the legacy loader -- this isn't recommended ++ public void addDirectDependency(String dependency) { ++ this.dependencies.add(dependency); ++ } ++ + @Override + public String toString() { + return "ProviderDependencyTree{" + @@ -2292,6 +2297,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + PluginMeta configuration = provider.getMeta(); + + PluginProvider replacedProvider = providersToLoad.put(configuration.getName(), provider); ++ dependencyTree.addDirectDependency(configuration.getName()); // add to dependency tree + if (replacedProvider != null) { + LOGGER.severe(String.format( + "Ambiguous plugin name `%s' for files `%s' and `%s' in `%s'", @@ -2324,6 +2330,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + )); + } else { + String replacedPlugin = pluginsProvided.put(provided, configuration.getName()); ++ dependencyTree.addDirectDependency(provided); // add to dependency tree + if (replacedPlugin != null) { + LOGGER.warning(String.format( + "`%s' is provided by both `%s' and `%s'",