From 7d587ecc6df063815a1779f27955c5171e9e7f5b Mon Sep 17 00:00:00 2001 From: Aaron Griffith Date: Tue, 14 Jun 2011 21:13:53 -0400 Subject: [PATCH] changed mineral overlay to highlight even if the block is just above the color --- src/rendermode-mineral.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendermode-mineral.c b/src/rendermode-mineral.c index 5ba4f1e..3a74d5a 100644 --- a/src/rendermode-mineral.c +++ b/src/rendermode-mineral.c @@ -43,7 +43,7 @@ static struct MineralColor default_minerals[] = { static void get_color(void *data, RenderState *state, unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a) { - int x = state->x, y = state->y, z_max = state->z, z; + int x = state->x, y = state->y, z_max = state->z + 1, z; int max_i = -1; RenderModeMineral* self = (RenderModeMineral *)data; struct MineralColor *minerals = (struct MineralColor *)(self->minerals);