fix block outline rendering (high coordinates)

drawVoxelShape already takes doubles, so it is already offset.
This commit is contained in:
Bixilon 2023-05-24 19:21:22 +02:00
parent 155b83d5b7
commit 71efb16e58
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -128,7 +128,7 @@ class BlockOutlineRenderer(
val mesh = LineMesh(context)
val blockOffset = offsetPosition.toVec3d
val blockOffset = target.blockPosition.toVec3d
if (target.state.block is RandomOffsetBlock) {
target.state.block.randomOffset?.let { blockOffset += target.blockPosition.getWorldOffset(it) }
}