diff --git a/src/main/java/net/fabricmc/stitch/util/SnowmanClassVisitor.java b/src/main/java/net/fabricmc/stitch/util/SnowmanClassVisitor.java index 7e165f3..e4eff30 100644 --- a/src/main/java/net/fabricmc/stitch/util/SnowmanClassVisitor.java +++ b/src/main/java/net/fabricmc/stitch/util/SnowmanClassVisitor.java @@ -21,6 +21,8 @@ import org.objectweb.asm.MethodVisitor; public class SnowmanClassVisitor extends ClassVisitor { + private int localCounter = 0; + public static class SnowmanMethodVisitor extends MethodVisitor { public SnowmanMethodVisitor(int api, MethodVisitor methodVisitor) { super(api, methodVisitor); @@ -45,7 +47,7 @@ public void visitLocalVariable( final int index) { String newName = name; if (name != null && name.startsWith("\u2603")) { - newName = "lvt" + index; + newName = "var" + localCounter++; } super.visitLocalVariable(newName, descriptor, signature, start, end, index); }