mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-15 10:25:06 -04:00
fix block outline rendering (high coordinates)
drawVoxelShape already takes doubles, so it is already offset.
This commit is contained in:
parent
155b83d5b7
commit
71efb16e58
@ -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) }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user