Don't add deobfuscated dependencies to the FML reparseable coremod collection

fixes #207
This commit is contained in:
kashike committed 2017-10-09 17:56:53 -07:00
1 parent 039d1f6d0b
commit aae377c1ba
1 file changed
+9 -1
@@ -177,11 +177,19 @@ public class MixinPlatformAgentFML extends MixinPlatformAgentAbstract {
MixinPlatformAgentAbstract.logger.catching(ex);
}
if (this.attributes.get(MixinPlatformAgentFML.MFATT_COREMODCONTAINSMOD) != null) {
if (this.attributes.get(MixinPlatformAgentFML.MFATT_COREMODCONTAINSMOD) != null) {
if (this.isIgnoredReparseable()) {
MixinPlatformAgentAbstract.logger.debug("Ignoring request to add {} to reparseable coremod collection - it is a deobfuscated dependency", this.fileName);
return;
}
this.addReparseableJar();
}
}
private boolean isIgnoredReparseable() {
return this.container.toString().contains("deobfedDeps");
}
/**
* Called by {@link #loadAsMod} if the "fml core plugin contains fml mod" is
* set, adds this container to the "reparsable coremods" collection.