mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-25 11:04:23 +00:00
Temp fix for downstream SRGs not remapping members, fixes #99
This commit is contained in:
1 parent
d8e07fcb27
commit
54fa0f4e76
5 files changed
+125
-9
No files matched your search
@@ -41,9 +41,9 @@ import joptsimple.internal.Strings;
|
||||
*/
|
||||
public class SrgContainer {
|
||||
|
||||
private final BiMap<String, String> classMap = HashBiMap.create();
|
||||
private final BiMap<String, String> fieldMap = HashBiMap.create();
|
||||
private final BiMap<String, String> packageMap = HashBiMap.create();
|
||||
private final BiMap<String, String> classMap = HashBiMap.create();
|
||||
private final BiMap<SrgField, SrgField> fieldMap = HashBiMap.create();
|
||||
private final BiMap<SrgMethod, SrgMethod> methodMap = HashBiMap.create();
|
||||
|
||||
public void readSrg(File srg) throws IOException {
|
||||
@@ -60,7 +60,7 @@ public class SrgContainer {
|
||||
} else if (type.equals("CL")) {
|
||||
this.classMap.forcePut(args[0], args[1]);
|
||||
} else if (type.equals("FD")) {
|
||||
this.fieldMap.forcePut(args[0], args[1]);
|
||||
this.fieldMap.forcePut(new SrgField(args[0]), new SrgField(args[1]));
|
||||
} else if (type.equals("MD")) {
|
||||
this.methodMap.forcePut(new SrgMethod(args[0], args[1]), new SrgMethod(args[2], args[3]));
|
||||
} else {
|
||||
@@ -73,7 +73,7 @@ public class SrgContainer {
|
||||
return this.methodMap.get(methodName);
|
||||
}
|
||||
|
||||
public String getFieldMapping(String fieldName) {
|
||||
public SrgField getFieldMapping(SrgField fieldName) {
|
||||
return this.fieldMap.get(fieldName);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user