mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-28 02:05:37 +00:00
Generate correct refmap entry for unqualified class names in NEW targets
Fixes SpongePowered/SpongeCommon#1123
This commit is contained in:
1 parent
8e74c719cb
commit
952769c990
1 file changed
+5
-1
+5
-1
@@ -235,7 +235,11 @@ class AnnotatedMixinElementHandlerInjector extends AnnotatedMixinElementHandler
|
||||
ObfuscationData<String> mappings = new ObfuscationData<String>();
|
||||
for (ObfuscationType type : remapped) {
|
||||
MappingMethod mapping = remapped.get(type);
|
||||
mappings.add(type, mapping.getDesc().replace(")V", ")L" + mapping.getOwner() + ";"));
|
||||
if (desc == null) {
|
||||
mappings.add(type, mapping.getOwner());
|
||||
} else {
|
||||
mappings.add(type, mapping.getDesc().replace(")V", ")L" + mapping.getOwner() + ";"));
|
||||
}
|
||||
}
|
||||
|
||||
this.obf.getReferenceManager().addClassMapping(this.classRef, reference, mappings);
|
||||
|
||||
Reference in new issue
Block a user