Red entity boxes no longer intersect the floor.
This commit is contained in:
parent
2e83d1937c
commit
e6f7513ac7
@ -34,7 +34,7 @@ class EntityMeshBase(ChunkMeshBase):
|
||||
positions = numpy.array(positions, dtype=float)
|
||||
positions[:, (0, 2)] -= (x, z)
|
||||
if offset:
|
||||
positions -= 0.5
|
||||
positions -= (0.5, 0.0, 0.5)
|
||||
|
||||
vertexBuffer.rgba[:] = colors
|
||||
vertexBuffer.vertex[:] = positions[:, numpy.newaxis, numpy.newaxis, :]
|
||||
|
Reference in New Issue
Block a user