mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-30 03:32:03 -07:00
Re-enable multi-release plugin JARs (#9001)
This commit is contained in:
@@ -5069,7 +5069,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ 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!");
|
||||
|
Reference in New Issue
Block a user