mirror of
https://github.com/architectury/architectury-plugin.git
synced 2026-03-28 04:07:01 -05:00
Set the maxStack
This commit is contained in:
@@ -61,6 +61,7 @@ fun transformExpectPlatform(): (ClassNode, (String, ByteArray) -> Unit) -> Class
|
||||
)
|
||||
|
||||
method.instructions.addReturn(returnValue.first { it != '[' })
|
||||
method.maxStack = index
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ object Transform {
|
||||
if ((reader.access and Opcodes.ACC_MODULE) == 0) {
|
||||
val node = ClassNode(Opcodes.ASM8)
|
||||
reader.accept(node, ClassReader.EXPAND_FRAMES)
|
||||
val writer = ClassWriter(ClassWriter.COMPUTE_MAXS)
|
||||
val writer = ClassWriter(0)
|
||||
transform(node) { name, bytes ->
|
||||
File(output.toFile().parentFile, "$name.class").also {
|
||||
it.delete()
|
||||
|
||||
Reference in New Issue
Block a user