diff --git a/module-common/src/main/java/io/github/legacymoddingmc/unimixins/common/sanitycheck/SanityCheckHelper.java b/module-common/src/main/java/io/github/legacymoddingmc/unimixins/common/sanitycheck/SanityCheckHelper.java index 1307773..4c9e305 100644 --- a/module-common/src/main/java/io/github/legacymoddingmc/unimixins/common/sanitycheck/SanityCheckHelper.java +++ b/module-common/src/main/java/io/github/legacymoddingmc/unimixins/common/sanitycheck/SanityCheckHelper.java @@ -79,8 +79,7 @@ public class SanityCheckHelper { Matcher matcher = LETTER.matcher(name); if(matcher.find()) { int firstLetterIndex = matcher.start(); - name = name.substring(firstLetterIndex); - if (anyPrefixesMatch(name, concerningPrefixes)) { + if (anyPrefixesMatch(name.substring(firstLetterIndex), concerningPrefixes)) { matches.add(name); } }