1
0
forked from xjboss/KCauldronX

Fix incompability with obfuscated plugins (like SurvivalGames)

This commit is contained in:
Prototik 2015-05-25 20:20:04 +07:00
parent e7413d1814
commit bbf1de17e7
2 changed files with 20 additions and 1 deletions

View File

@ -164,7 +164,7 @@
+ jarMapping.setFallbackInheritanceProvider(new ClassLoaderProvider(this));
+ }
+
+ remapper = new JarRemapper(jarMapping);
+ remapper = new kcauldron.KCauldronRemapper(jarMapping);
+
+ if (pluginInherit || reflectFields || reflectClass) {
+ remapperProcessor = new RemapperProcessor(

View File

@ -0,0 +1,19 @@
package kcauldron;
import net.md_5.specialsource.JarMapping;
import net.md_5.specialsource.JarRemapper;
public class KCauldronRemapper extends JarRemapper {
public KCauldronRemapper(JarMapping jarMapping) {
super(jarMapping);
}
@Override
public String mapSignature(String signature, boolean typeSignature) {
try {
return super.mapSignature(signature, typeSignature);
} catch (Exception e) {
return signature;
}
}
}