Re-enable multi-release plugin JARs (#9001)
This commit is contained in:
parent
055f7228f0
commit
510082222b
192 changed files with 9 additions and 28 deletions
|
@ -5015,7 +5015,7 @@ index 0000000000000000000000000000000000000000..ed00c412f1703b38674bbd0d483fcb10
|
|||
+}
|
||||
diff --git a/src/main/java/io/papermc/paper/plugin/provider/source/FileProviderSource.java b/src/main/java/io/papermc/paper/plugin/provider/source/FileProviderSource.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..0077a0a82c04bae0d93ab5c9cf07364b7c947bb3
|
||||
index 0000000000000000000000000000000000000000..3b1215fcfa1b9de42d8f946c4e2b4572e8834f8d
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/io/papermc/paper/plugin/provider/source/FileProviderSource.java
|
||||
@@ -0,0 +1,157 @@
|
||||
|
@ -5069,7 +5069,7 @@ index 0000000000000000000000000000000000000000..0077a0a82c04bae0d93ab5c9cf07364b
|
|||
+ try {
|
||||
+ context = this.checkUpdate(context);
|
||||
+
|
||||
+ JarFile file = new JarFile(context.toFile());
|
||||
+ JarFile file = new JarFile(context.toFile(), true, JarFile.OPEN_READ, JarFile.runtimeVersion());
|
||||
+ PluginFileType<?, ?> type = PluginFileType.guessType(file);
|
||||
+ if (type == null) {
|
||||
+ throw new IllegalArgumentException(source + " is not a valid plugin file, cannot load a plugin from it!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue