From e6ccd79b1b8bcd9062a458034343a4cd29972fd3 Mon Sep 17 00:00:00 2001 From: Aaron Griffith Date: Sat, 24 Dec 2011 15:42:28 -0500 Subject: [PATCH] blocks with invalid or unsupported data will now still draw *something* it looks weird to just draw nothing, especially if the block is opaque, since you can then see through the world. fixes issue reported in Issue #563 --- overviewer_core/src/iterate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/overviewer_core/src/iterate.c b/overviewer_core/src/iterate.c index d794277..c7b3f68 100644 --- a/overviewer_core/src/iterate.c +++ b/overviewer_core/src/iterate.c @@ -481,6 +481,9 @@ chunk_render(PyObject *self, PyObject *args) { /* get the texture */ t = PyList_GET_ITEM(blockmap, max_data * state.block + ancilData); + /* if we don't get a texture, try it again with 0 data */ + if ((t == NULL || t == Py_None) && ancilData != 0) + t = PyList_GET_ITEM(blockmap, max_data * state.block); /* if we found a proper texture, render it! */ if (t != NULL && t != Py_None)