diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 3fa8f862..a4413138 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/src/main/java/net/fabricmc/tinyremapper/Main.java b/src/main/java/net/fabricmc/tinyremapper/Main.java index 7548a40c..8b537015 100644 --- a/src/main/java/net/fabricmc/tinyremapper/Main.java +++ b/src/main/java/net/fabricmc/tinyremapper/Main.java @@ -57,6 +57,7 @@ public static void main(String[] rawArgs) { boolean skipLocalVariableMapping = false; boolean renameInvalidLocals = false; Pattern invalidLvNamePattern = null; + boolean inferNameFromSameLvIndex = false; NonClassCopyMode ncCopyMode = NonClassCopyMode.FIX_META_INF; int threads = -1; boolean enableMixin = false; @@ -118,6 +119,9 @@ public static void main(String[] rawArgs) { case "invalidlvnamepattern": invalidLvNamePattern = Pattern.compile(arg.substring(valueSepPos + 1)); break; + case "infernamefromsamelvindex": + inferNameFromSameLvIndex = true; + break; case "nonclasscopymode": switch (arg.substring(valueSepPos + 1).toLowerCase(Locale.ENGLISH)) { case "unchanged": ncCopyMode = NonClassCopyMode.UNCHANGED; break; @@ -248,6 +252,7 @@ public static void main(String[] rawArgs) { .skipLocalVariableMapping(skipLocalVariableMapping) .renameInvalidLocals(renameInvalidLocals) .invalidLvNamePattern(invalidLvNamePattern) + .inferNameFromSameLvIndex(inferNameFromSameLvIndex) .threads(threads); if (enableMixin) {