Skip to content

Commit f55a34f

Browse files
authored
Properly handle provider plugins in load order (#13242)
1 parent 6794db4 commit f55a34f

File tree

1 file changed

+3
-0
lines changed
  • paper-server/src/main/java/io/papermc/paper/plugin/entrypoint/strategy/modern

1 file changed

+3
-0
lines changed

paper-server/src/main/java/io/papermc/paper/plugin/entrypoint/strategy/modern/LoadOrderTree.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ public void add(PluginProvider<?> provider) {
4949
}
5050

5151
this.graph.addNode(identifier); // Make sure load order has at least one node
52+
for (String provides : provider.getMeta().getProvidedPlugins()) {
53+
this.graph.putEdge(provides, identifier); // Register provided plugins
54+
}
5255
}
5356

5457
public List<String> getLoadOrder() throws PluginGraphCycleException {

0 commit comments

Comments
 (0)