File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
ProtocolLib/src/main/java/com/comphenix/protocol/reflect/compiler Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,8 @@ public boolean equals(Object obj) {
146
146
private static String SUPER_CLASS = "com/comphenix/protocol/reflect/StructureModifier" ;
147
147
private static String COMPILED_CLASS = PACKAGE_NAME + "/CompiledStructureModifier" ;
148
148
private static String FIELD_EXCEPTION_CLASS = "com/comphenix/protocol/reflect/FieldAccessException" ;
149
+
150
+ private static boolean attemptClassLoad = false ;
149
151
150
152
/**
151
153
* Construct a structure compiler.
@@ -168,6 +170,11 @@ public <TField> boolean lookupClassLoader(StructureModifier<TField> source) {
168
170
return true ;
169
171
}
170
172
173
+ // Fix: Loading classes causes a ton of lag and isn't necessary
174
+ if (!attemptClassLoad ) {
175
+ return false ;
176
+ }
177
+
171
178
try {
172
179
String className = getCompiledName (source );
173
180
You can’t perform that action at this time.
0 commit comments