Skip to content

Commit 42cbfdf

Browse files
committed
Emit classes with COMPUTE_MAXS to account for unpick modifications
1 parent 86cfca4 commit 42cbfdf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ asm-tree = { module = "org.ow2.asm:asm-tree", version.ref = "asm" }
4242
unpick-format = { module = "net.fabricmc.unpick:unpick-format-utils", version.ref = "unpick" }
4343
unpick = { module = "net.fabricmc.unpick:unpick", version.ref = "unpick" }
4444

45-
hypo-platform = "dev.denwav.hypo:hypo-platform:2.3.0"
45+
hypo-platform = "dev.denwav.hypo:hypo-platform:2.4.1"
4646
hypo-model = { module = "dev.denwav.hypo:hypo-model" }
4747
hypo-core = { module = "dev.denwav.hypo:hypo-core" }
4848
hypo-asm = { module = "dev.denwav.hypo:hypo-asm" }

src/main/java/io/papermc/codebook/CodeBook.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
import java.nio.file.Path;
5151
import java.util.List;
5252
import org.checkerframework.checker.nullness.qual.Nullable;
53+
import org.objectweb.asm.ClassWriter;
5354

5455
public final class CodeBook {
5556

@@ -92,7 +93,7 @@ private void exec(final Path tempDir) {
9293
final Path resultJar;
9394
try (context) {
9495
resultJar = tempDir.resolve("final_output.jar");
95-
AsmOutputWriter.to(resultJar).write(context);
96+
AsmOutputWriter.to(resultJar, $ -> ClassWriter.COMPUTE_MAXS).write(context);
9697
} catch (final Exception e) {
9798
throw new UnexpectedException("Failed to write output file", e);
9899
}

0 commit comments

Comments
 (0)