Ignore missing classes in lenient SRG merging

This commit is contained in:
Juuxel
2020-11-30 18:04:45 +02:00
parent 038b0bfec3
commit 5abdcea4dd

View File

@@ -110,7 +110,11 @@ public final class SrgMerger {
ClassDef classDef = foss.getDefaultNamespaceClassMap().get(obf);
if (classDef == null) {
throw new MappingException("Missing class: " + obf + " (srg: " + srg + ")");
if (lenient) {
return;
} else {
throw new MappingException("Missing class: " + obf + " (srg: " + srg + ")");
}
}
List<String> classNames = CollectionUtil.map(