Skip to content

Commit

Permalink
Don't include CCL interface - doesn't actually solve anything
Browse files Browse the repository at this point in the history
  • Loading branch information
LunNova committed Jan 20, 2017
1 parent c7a326b commit a382f6c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
5 changes: 0 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,6 @@ def apiJarConfig = {
include 'me/nallar/modpatcher/ModPatcher$Version.*'
include 'me/nallar/modpatcher/ModPatcherSetup.*'
}
from((configurations.provided).filter { it.exists() }.collect {
it.isDirectory() ? it : zipTree(it)
}) {
include 'net/minecraft/launchwrapper/nallar/cachingclassloader/CachingClassLoader.*'
}
}

task apiJar(type: Jar, dependsOn: classes)
Expand Down
6 changes: 1 addition & 5 deletions src/main/java/me/nallar/modpatcher/ModPatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.google.common.io.Resources;
import me.nallar.javapatcher.patcher.Patcher;
import net.minecraft.launchwrapper.LaunchClassLoader;
import net.minecraft.launchwrapper.nallar.cachingclassloader.CachingClassLoader;
import net.minecraftforge.fml.relauncher.ReflectionHelper;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand Down Expand Up @@ -234,10 +233,7 @@ private static void addToCurrentClassLoader() {
try {
// No, IDEA, it's not always true
//noinspection ConstantConditions
if (lcl instanceof CachingClassLoader) {
CachingClassLoader ccl = (CachingClassLoader) lcl;
ccl.clearFailures(ModPatcher::removeModPatcherEntries);
}
lcl.clearFailures(ModPatcher::removeModPatcherEntries);
cclInvalidNegativeCleared = true;
} catch (NoClassDefFoundError ignored) {
}
Expand Down

0 comments on commit a382f6c

Please sign in to comment.