forked from xjboss/KCauldronX
Fix incompability with obfuscated plugins (like SurvivalGames)
This commit is contained in:
parent
e7413d1814
commit
bbf1de17e7
@ -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(
|
||||
|
19
src/main/java/kcauldron/KCauldronRemapper.java
Normal file
19
src/main/java/kcauldron/KCauldronRemapper.java
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user