0

added netherbrick stairs to lighting estimator

Reported in Issue #581.
This commit is contained in:
Aaron Griffith
2012-01-08 16:22:06 -05:00
parent e1a6d96e87
commit f1758a51a7
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@
// increment this value if you've made a change to the c extesion
// and want to force users to rebuild
#define OVERVIEWER_EXTENSION_VERSION 14
#define OVERVIEWER_EXTENSION_VERSION 15
/* Python PIL, and numpy headers */
#include <Python.h>

View File

@@ -245,8 +245,8 @@ get_lighting_color(RenderModeLighting *self, RenderState *state,
skylevel = getArrayByte3D(skylight, local_x, local_y, local_z);
blocklevel = getArrayByte3D(blocklight, local_x, local_y, local_z);
/* special half-step handling */
if (block == 44 || block == 53 || block == 67 || block == 108 || block == 109) {
/* special half-step, stairs handling */
if (block == 44 || block == 53 || block == 67 || block == 108 || block == 109 || block == 114) {
unsigned int upper_block;
/* stairs and half-blocks take the skylevel from the upper block if it's transparent */