mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-25 02:54:21 +00:00
Fix bug in ReferenceMapper, return original mapping if no remap defined
This commit is contained in:
1 parent
3fd6c5fc02
commit
f556be1adc
1 file changed
+2
-1
@@ -63,7 +63,8 @@ public final class ReferenceMapper implements Serializable {
|
||||
if (classMappings == null) {
|
||||
return reference;
|
||||
}
|
||||
return classMappings.get(reference);
|
||||
String remappedReference = classMappings.get(reference);
|
||||
return remappedReference != null ? remappedReference : reference;
|
||||
}
|
||||
|
||||
public void addMapping(String className, String reference, String newReference) {
|
||||
|
||||
Reference in new issue
Block a user