mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-11 12:31:34 +01:00
Properly handle load before plugins in legacy loading (#8962)
This commit is contained in:
parent
18470db17f
commit
155aa36d89
1 changed files with 3 additions and 3 deletions
|
@ -2165,7 +2165,7 @@ index 0000000000000000000000000000000000000000..a9bca905eba67972e4d1b07b1d243272
|
|||
+}
|
||||
diff --git a/src/main/java/io/papermc/paper/plugin/entrypoint/strategy/LegacyPluginLoadingStrategy.java b/src/main/java/io/papermc/paper/plugin/entrypoint/strategy/LegacyPluginLoadingStrategy.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..779f6980a71db8df68c9cf20784976409d13929e
|
||||
index 0000000000000000000000000000000000000000..2f4d0e04676d000afacd7e5354551e77922b2dcf
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/io/papermc/paper/plugin/entrypoint/strategy/LegacyPluginLoadingStrategy.java
|
||||
@@ -0,0 +1,269 @@
|
||||
|
@ -2283,7 +2283,7 @@ index 0000000000000000000000000000000000000000..779f6980a71db8df68c9cf2078497640
|
|||
+ }
|
||||
+ }
|
||||
+
|
||||
+ Collection<String> loadBeforeSet = provider.getMeta().getPluginSoftDependencies();
|
||||
+ Collection<String> loadBeforeSet = provider.getMeta().getLoadBeforePlugins();
|
||||
+ if (loadBeforeSet != null && !loadBeforeSet.isEmpty()) {
|
||||
+ for (String loadBeforeTarget : loadBeforeSet) {
|
||||
+ if (softDependencies.containsKey(loadBeforeTarget)) {
|
||||
|
@ -5857,7 +5857,7 @@ index 0000000000000000000000000000000000000000..b2a6544e321fa61c58bdf5684231de10
|
|||
+}
|
||||
diff --git a/src/main/java/io/papermc/paper/plugin/provider/type/spigot/SpigotPluginProvider.java b/src/main/java/io/papermc/paper/plugin/provider/type/spigot/SpigotPluginProvider.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..36f8dc31394333bb9aaa9341014037a4c5083683
|
||||
index 0000000000000000000000000000000000000000..d5db789074ca5a9e005c26a221ee3879252b3d6c
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/io/papermc/paper/plugin/provider/type/spigot/SpigotPluginProvider.java
|
||||
@@ -0,0 +1,190 @@
|
||||
|
|
Loading…
Reference in a new issue