Generate correct refmap entry for unqualified class names in NEW targets

Fixes SpongePowered/SpongeCommon#1123
This commit is contained in:
Mumfrey committed 2017-01-09 01:40:45 +00:00
1 parent 8e74c719cb
commit 952769c990
1 file changed
+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);