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:
Ursprung
c40d9c1e6c
Commit
bd28035024
@ -147,6 +147,8 @@ public final class StructureCompiler {
|
|||||||
private static String COMPILED_CLASS = PACKAGE_NAME + "/CompiledStructureModifier";
|
private static String COMPILED_CLASS = PACKAGE_NAME + "/CompiledStructureModifier";
|
||||||
private static String FIELD_EXCEPTION_CLASS = "com/comphenix/protocol/reflect/FieldAccessException";
|
private static String FIELD_EXCEPTION_CLASS = "com/comphenix/protocol/reflect/FieldAccessException";
|
||||||
|
|
||||||
|
public static boolean attemptClassLoad = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct a structure compiler.
|
* Construct a structure compiler.
|
||||||
* @param loader - main class loader.
|
* @param loader - main class loader.
|
||||||
@ -169,6 +171,12 @@ public final class StructureCompiler {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (! attemptClassLoad) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// This causes a ton of lag and doesn't seem to work
|
||||||
|
|
||||||
try {
|
try {
|
||||||
String className = getCompiledName(source);
|
String className = getCompiledName(source);
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren