Let's try

This commit is contained in:
shedaniel
2020-11-13 01:23:32 +08:00
parent c25e3cf3f5
commit 77ac1d37fb

View File

@@ -6,6 +6,7 @@ import org.objectweb.asm.tree.*
import java.lang.invoke.CallSite
import java.lang.invoke.MethodHandles
import java.lang.invoke.MethodType
import kotlin.math.max
const val expectPlatform = "Lme/shedaniel/architectury/ExpectPlatform;"
@@ -61,7 +62,7 @@ fun transformExpectPlatform(): (ClassNode, (String, ByteArray) -> Unit) -> Class
)
method.instructions.addReturn(returnValue.first { it != '[' })
method.maxStack = index
method.maxStack = max(1, index)
}
}