mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-12 00:07:33 +00:00
Reduce classloading remapping to minecraft classes. Everything else should be srg.
This commit is contained in:
1 parent
1f03959a99
commit
66fd8ad103
2 files changed
+12
-1
No files matched your search
@@ -15,6 +15,10 @@ import java.util.HashSet;
|
||||
*/
|
||||
public class ClassHeirachyManager implements IClassTransformer
|
||||
{
|
||||
static {
|
||||
ASMInit.init();
|
||||
}
|
||||
|
||||
public static class SuperCache
|
||||
{
|
||||
String superclass;
|
||||
|
||||
@@ -72,6 +72,10 @@ public class ObfMapping
|
||||
public String map(String typeName) {
|
||||
return FMLDeobfuscatingRemapper.INSTANCE.unmap(typeName);
|
||||
}
|
||||
|
||||
public boolean isObf(String typeName) {
|
||||
return !map(typeName).equals(typeName);
|
||||
}
|
||||
}
|
||||
|
||||
public static class MCPRemapper extends Remapper implements LineProcessor<Void>
|
||||
@@ -379,7 +383,10 @@ public class ObfMapping
|
||||
}
|
||||
|
||||
public ObfMapping toClassloading() {
|
||||
map(obfuscated ? obfMapper : mcpMapper);
|
||||
if(!obfuscated)
|
||||
map(mcpMapper);
|
||||
else if(obfMapper.isObf(s_owner))
|
||||
map(obfMapper);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user