fix Optifine Shaders integration

use the low-level call on SVertexBuilder to set apparent block ID for the current draw
This commit is contained in:
octarine-noise
2021-04-26 17:07:31 +02:00
parent c668713051
commit dac7fa0b42
2 changed files with 10 additions and 9 deletions
@@ -60,9 +60,12 @@ object CustomColors : ClassRef<Any>("net.optifine.CustomColors") {
// Optifine shaders
object SVertexBuilder : ClassRef<Any>("net.optifine.shaders.SVertexBuilder") {
val pushState = MethodRef(this, "pushEntity", void, BlockState, BlockPos, IEnvironmentBlockReader, BufferBuilder)
val pushNum = MethodRef(this, "pushEntity", void, long)
val pop = MethodRef(this, "popEntity", void)
val pushState = MethodRef(this, "pushEntity", void, long)
val popState = MethodRef(this, "popEntity", void)
}
object BlockAliases : ClassRef<Any>("net.optifine.shaders.BlockAliases") {
val getAliasBlockId = MethodRef(this, "getAliasBlockId", int, BlockState)
}