mirror of
https://github.com/architectury/architectury-plugin.git
synced 2026-03-28 04:07:01 -05:00
Fix @ExpectPlatform for longs and doubles
This commit is contained in:
@@ -32,7 +32,10 @@ fun transformExpectPlatform(): (ClassNode, (String, ByteArray) -> Unit) -> Class
|
||||
} else when (char) {
|
||||
'[' -> Unit
|
||||
'L' -> inClass = true
|
||||
else -> method.instructions.addLoad(char, index++)
|
||||
else -> method.instructions.addLoad(char, when (char) {
|
||||
'J', 'D' -> index.also { index += 2 }
|
||||
else -> index++
|
||||
})
|
||||
}
|
||||
cursor++
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user