Mod class loading bugfix
This commit is contained in:
@@ -13,7 +13,10 @@ public class ModClassLoader extends ClassLoader{
|
|||||||
@Override
|
@Override
|
||||||
protected Class<?> findClass(String name) throws ClassNotFoundException{
|
protected Class<?> findClass(String name) throws ClassNotFoundException{
|
||||||
//a child may try to delegate class loading to its parent, which is *this class loader* - do not let that happen
|
//a child may try to delegate class loading to its parent, which is *this class loader* - do not let that happen
|
||||||
if(inChild) throw new ClassNotFoundException(name);
|
if(inChild){
|
||||||
|
inChild = false;
|
||||||
|
throw new ClassNotFoundException(name);
|
||||||
|
}
|
||||||
|
|
||||||
ClassNotFoundException last = null;
|
ClassNotFoundException last = null;
|
||||||
int size = children.size;
|
int size = children.size;
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ kapt.use.worker.api=true
|
|||||||
kapt.include.compile.classpath=false
|
kapt.include.compile.classpath=false
|
||||||
# I don't need to use the kotlin stdlib yet, so remove it to prevent extra bloat & method count issues
|
# I don't need to use the kotlin stdlib yet, so remove it to prevent extra bloat & method count issues
|
||||||
kotlin.stdlib.default.dependency=false
|
kotlin.stdlib.default.dependency=false
|
||||||
archash=dabe9d3e89a9ed1b1c4cb8496a4525dedf29f613
|
archash=ea70a34cc621c2c75d0aef5511c7f5aa4ced0d46
|
||||||
|
|||||||
Reference in New Issue
Block a user