Obf changes, remove srg2source, add ctors to refmap, fixes #96 fixes #97

This commit is contained in:
Mumfrey committed 2016-01-26 13:41:16 +00:00
1 parent 2c9e3d1d39
commit 5afccbd4dd
15 files changed
+382 -85

No files matched your search

@@ -30,11 +30,10 @@ import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.ExecutableElement;
import javax.tools.Diagnostic.Kind;
import org.spongepowered.asm.obfuscation.MethodData;
import org.spongepowered.tools.MirrorUtils;
import org.spongepowered.tools.obfuscation.interfaces.IMixinAnnotationProcessor;
import net.minecraftforge.srg2source.rangeapplier.MethodData;
class AnnotatedMixinOverwriteHandler extends AnnotatedMixinElementHandler {
AnnotatedMixinOverwriteHandler(IMixinAnnotationProcessor ap, AnnotatedMixin mixin) {
@@ -73,8 +72,7 @@ class AnnotatedMixinOverwriteHandler extends AnnotatedMixinElementHandler {
for (ObfuscationType type : obfData) {
MethodData obfMethod = obfData.get(type);
String obfName = obfMethod.name.substring(obfMethod.name.lastIndexOf('/') + 1);
this.addMethodMapping(type, mcpName, obfName, mcpSignature, obfMethod.sig);
this.addMethodMapping(type, mcpName, obfMethod.getSimpleName(), mcpSignature, obfMethod.getDesc());
}
if (!"true".equalsIgnoreCase(this.ap.getOption(SupportedOptions.DISABLE_OVERWRITE_CHECKER))) {