From 789e5f57b84b9b0d1a2783becc0e3bbce8b101a4 Mon Sep 17 00:00:00 2001 From: muhammadeko Date: Fri, 29 Apr 2022 16:12:25 +0700 Subject: [PATCH] skip loading module-info.class --- src/main/java/emu/grasscutter/plugin/PluginManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/plugin/PluginManager.java b/src/main/java/emu/grasscutter/plugin/PluginManager.java index 89adfeda0..9e0b869b9 100644 --- a/src/main/java/emu/grasscutter/plugin/PluginManager.java +++ b/src/main/java/emu/grasscutter/plugin/PluginManager.java @@ -66,7 +66,7 @@ public final class PluginManager { Enumeration entries = jarFile.entries(); while(entries.hasMoreElements()) { JarEntry entry = entries.nextElement(); - if(entry.isDirectory() || !entry.getName().endsWith(".class")) continue; + if(entry.isDirectory() || !entry.getName().endsWith(".class") || entry.getName().contains("module-info")) continue; String className = entry.getName().replace(".class", "").replace("/", "."); Class clazz = loader.loadClass(className); }