From 2c796f453f9c2f702f060696c7f673b2321afa80 Mon Sep 17 00:00:00 2001 From: Space Walker Date: Tue, 28 May 2024 19:45:02 +0200 Subject: [PATCH] fix typo --- src/main/java/net/ornithemc/mappingutils/Propagator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/ornithemc/mappingutils/Propagator.java b/src/main/java/net/ornithemc/mappingutils/Propagator.java index 170aa48..3c02e10 100644 --- a/src/main/java/net/ornithemc/mappingutils/Propagator.java +++ b/src/main/java/net/ornithemc/mappingutils/Propagator.java @@ -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)) {