Skip to content

Commit 14a5f72

Browse files
committed
Fix Tiny v2 serialization of missing lvt row indices
1 parent 7c704a7 commit 14a5f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/fabricmc/mappingio/format/Tiny2Writer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public boolean visitMethodVar(int lvtRowIndex, int lvIndex, int startOpIdx, Stri
132132
writeTab();
133133
write(startOpIdx);
134134
writeTab();
135-
if (lvtRowIndex >= 0) write(lvtRowIndex);
135+
write(Math.max(lvtRowIndex, -1));
136136
writeTab();
137137
if (srcName != null) writeName(srcName);
138138

0 commit comments

Comments
 (0)