0

fixed MIN/MAX mixup that prevented spawn overlay from working

This commit is contained in:
Aaron Griffith
2011-04-18 11:02:39 -07:00
parent c790ad5102
commit 5f6ceebc81

View File

@@ -43,7 +43,7 @@ static void get_color(void *data, RenderState *state,
}
Py_DECREF(block_py);
blocklight = getArrayByte3D(self->blocklight, x, y, MAX(127, z_light));
blocklight = getArrayByte3D(self->blocklight, x, y, MIN(127, z_light));
/* if we're at the top, force 15 (brightest!) skylight */
if (z_light == 128) {