mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 22:03:03 +08:00
skip loading module-info.class
This commit is contained in:
parent
d1e5fad95b
commit
789e5f57b8
@ -66,7 +66,7 @@ public final class PluginManager {
|
|||||||
Enumeration<JarEntry> entries = jarFile.entries();
|
Enumeration<JarEntry> entries = jarFile.entries();
|
||||||
while(entries.hasMoreElements()) {
|
while(entries.hasMoreElements()) {
|
||||||
JarEntry entry = entries.nextElement();
|
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("/", ".");
|
String className = entry.getName().replace(".class", "").replace("/", ".");
|
||||||
Class<?> clazz = loader.loadClass(className);
|
Class<?> clazz = loader.loadClass(className);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user