mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-25 09:54:24 +00:00
Update AP to allow (but warn) coerced multi-target reference conflicts
This commit is contained in:
1 parent
2a64bc35b4
commit
c6ce27efb0
6 files changed
+108
-10
No files matched your search
@@ -64,9 +64,9 @@ abstract class AnnotatedMixinElementHandler {
|
||||
*/
|
||||
abstract static class AnnotatedElement<E extends Element> {
|
||||
|
||||
private final E element;
|
||||
protected final E element;
|
||||
|
||||
private final AnnotationHandle annotation;
|
||||
protected final AnnotationHandle annotation;
|
||||
|
||||
private final String desc;
|
||||
|
||||
@@ -508,5 +508,14 @@ abstract class AnnotatedMixinElementHandler {
|
||||
}
|
||||
return stripped;
|
||||
}
|
||||
|
||||
protected static <T extends IMapping<T>> ObfuscationData<T> stripDescriptors(ObfuscationData<T> data) {
|
||||
ObfuscationData<T> stripped = new ObfuscationData<T>();
|
||||
for (ObfuscationType type : data) {
|
||||
T mapping = data.get(type);
|
||||
stripped.put(type, mapping.transform(null));
|
||||
}
|
||||
return stripped;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user