diff options
Diffstat (limited to 'src/main/java/cuchaz/enigma/convert/MappingsConverter.java')
| -rw-r--r-- | src/main/java/cuchaz/enigma/convert/MappingsConverter.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main/java/cuchaz/enigma/convert/MappingsConverter.java b/src/main/java/cuchaz/enigma/convert/MappingsConverter.java index a80d9ce..aa80014 100644 --- a/src/main/java/cuchaz/enigma/convert/MappingsConverter.java +++ b/src/main/java/cuchaz/enigma/convert/MappingsConverter.java | |||
| @@ -364,11 +364,9 @@ public class MappingsConverter { | |||
| 364 | public Set<BehaviorEntry> filterEntries(Collection<BehaviorEntry> obfDestFields, BehaviorEntry obfSourceField, ClassMatches classMatches) { | 364 | public Set<BehaviorEntry> filterEntries(Collection<BehaviorEntry> obfDestFields, BehaviorEntry obfSourceField, ClassMatches classMatches) { |
| 365 | Set<BehaviorEntry> out = Sets.newHashSet(); | 365 | Set<BehaviorEntry> out = Sets.newHashSet(); |
| 366 | for (BehaviorEntry obfDestField : obfDestFields) { | 366 | for (BehaviorEntry obfDestField : obfDestFields) { |
| 367 | Signature translatedDestSignature = translate(obfDestField.getSignature(), | 367 | // Try to translate the signature |
| 368 | classMatches.getUniqueMatches().inverse()); | 368 | Signature translatedDestSignature = translate(obfDestField.getSignature(), classMatches.getUniqueMatches().inverse()); |
| 369 | if ((translatedDestSignature == null && obfSourceField.getSignature() == null) | 369 | if (translatedDestSignature != null && obfSourceField.getSignature() != null && translatedDestSignature.equals(obfSourceField.getSignature())) |
| 370 | || translatedDestSignature != null && obfSourceField.getSignature() != null | ||
| 371 | && translatedDestSignature.equals(obfSourceField.getSignature())) | ||
| 372 | out.add(obfDestField); | 370 | out.add(obfDestField); |
| 373 | } | 371 | } |
| 374 | return out; | 372 | return out; |