Archiviert
13
0

Don't load classes when we're checking for them

This causes a ton of lag and doesn't seem to ever work
Addresses #124
Dieser Commit ist enthalten in:
Dan Mulloy 2015-10-31 13:47:45 -04:00
Ursprung c40d9c1e6c
Commit bd28035024

Datei anzeigen

@ -147,6 +147,8 @@ public final class StructureCompiler {
private static String COMPILED_CLASS = PACKAGE_NAME + "/CompiledStructureModifier";
private static String FIELD_EXCEPTION_CLASS = "com/comphenix/protocol/reflect/FieldAccessException";
public static boolean attemptClassLoad = false;
/**
* Construct a structure compiler.
* @param loader - main class loader.
@ -169,6 +171,12 @@ public final class StructureCompiler {
return true;
}
if (! attemptClassLoad) {
return false;
}
// This causes a ton of lag and doesn't seem to work
try {
String className = getCompiledName(source);