diff --git a/core/src/mindustry/mod/ModClassLoader.java b/core/src/mindustry/mod/ModClassLoader.java index 89a76e5714..3c7c5b9eba 100644 --- a/core/src/mindustry/mod/ModClassLoader.java +++ b/core/src/mindustry/mod/ModClassLoader.java @@ -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; diff --git a/gradle.properties b/gradle.properties index daf6453a0a..5e1622bd4c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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