Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceWalkerRS committed May 28, 2024
1 parent 3a0543c commit 2c796f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/ornithemc/mappingutils/Propagator.java
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ private Diff findSibling(Version v, MappingsDiff diffs, Diff d, Diff change, Dif
}
if (s != side) {
if (target == MappingTarget.CLASS) {
String simple = change.get(DiffSide.A).substring(dst.lastIndexOf('/') + 1);
String simple = change.get(DiffSide.A).substring(change.get(DiffSide.A).lastIndexOf('/') + 1);
String siblingSimple = siblingDst.substring(siblingDst.lastIndexOf('/') + 1);

if (simple.length() > siblingSimple.length() ? simple.endsWith(siblingSimple) : siblingSimple.endsWith(simple)) {
Expand Down

0 comments on commit 2c796f4

Please sign in to comment.