mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 05:27:43 -05:00
Ignore missing classes in lenient SRG merging
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user