Red entity boxes no longer intersect the floor.

This commit is contained in:
David Vierra 2015-07-11 11:31:40 -10:00
parent 2e83d1937c
commit e6f7513ac7

View File

@ -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, :]