mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-06 07:30:35 +07:00
Mod class loading bugfix
This commit is contained in:
parent
83854169b7
commit
3527acd33e
@ -13,7 +13,10 @@ public class ModClassLoader extends ClassLoader{
|
||||
@Override
|
||||
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
|
||||
if(inChild) throw new ClassNotFoundException(name);
|
||||
if(inChild){
|
||||
inChild = false;
|
||||
throw new ClassNotFoundException(name);
|
||||
}
|
||||
|
||||
ClassNotFoundException last = null;
|
||||
int size = children.size;
|
||||
|
@ -9,4 +9,4 @@ kapt.use.worker.api=true
|
||||
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
|
||||
kotlin.stdlib.default.dependency=false
|
||||
archash=dabe9d3e89a9ed1b1c4cb8496a4525dedf29f613
|
||||
archash=ea70a34cc621c2c75d0aef5511c7f5aa4ced0d46
|
||||
|
Loading…
Reference in New Issue
Block a user