3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-02 17:40:09 +01:00

Ignore synthetic classes when loading BukkitImplAdapter.

Dieser Commit ist enthalten in:
wizjany 2019-02-14 18:07:07 -05:00
Ursprung 39131eb1e5
Commit 319f2efe43

Datei anzeigen

@ -89,7 +89,7 @@ public class BukkitImplLoader {
try {
Enumeration<JarEntry> entries = jar.entries();
while (entries.hasMoreElements()) {
JarEntry jarEntry = (JarEntry) entries.nextElement();
JarEntry jarEntry = entries.nextElement();
String className = jarEntry.getName().replaceAll("[/\\\\]+", ".");
@ -153,6 +153,7 @@ public class BukkitImplLoader {
for (String className : adapterCandidates) {
try {
Class<?> cls = Class.forName(className);
if (cls.isSynthetic()) continue;
if (BukkitImplAdapter.class.isAssignableFrom(cls)) {
return (BukkitImplAdapter) cls.newInstance();
} else {