Clipping bugfixes
This commit is contained in:
@@ -20,17 +20,18 @@ public class ModClassLoader extends ClassLoader{
|
||||
|
||||
ClassNotFoundException last = null;
|
||||
int size = children.size;
|
||||
|
||||
inChild = true;
|
||||
//if it doesn't exist in the main class loader, try all the children
|
||||
for(int i = 0; i < size; i++){
|
||||
try{
|
||||
inChild = true;
|
||||
var out = children.get(i).loadClass(name);
|
||||
inChild = false;
|
||||
return out;
|
||||
return children.get(i).loadClass(name);
|
||||
}catch(ClassNotFoundException e){
|
||||
last = e;
|
||||
}
|
||||
}
|
||||
inChild = false;
|
||||
|
||||
throw (last == null ? new ClassNotFoundException(name) : last);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user