mirror of
https://github.com/runelite/plugin-hub.git
synced 2026-04-09 17:28:05 -04:00
package: allow v45.3 classes
if we ever support a versions that can emit preview classes this will need to check that too, but only 13+ does that so this is fine for now
This commit is contained in:
@@ -536,7 +536,8 @@ public class Plugin implements Closeable
|
||||
@Override
|
||||
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
|
||||
{
|
||||
if (version > Opcodes.V1_8 && !(fileName.startsWith("META-INF/versions") || fileName.endsWith("module-info.class")))
|
||||
if ((version & 0xFFFF) > Opcodes.V1_8
|
||||
&& !(fileName.startsWith("META-INF/versions") || fileName.endsWith("module-info.class")))
|
||||
{
|
||||
throw PluginBuildException.of(Plugin.this, "plugins must be Java 1.8 compatible")
|
||||
.withFile(fileName);
|
||||
|
||||
Reference in New Issue
Block a user