0

- Fixed lighting for anvils.

- Added vertical orientations for dispensers and droppers
- Added special cases of stone and sandstone double slabs
This commit is contained in:
Alejandro Aguilera
2013-03-11 14:02:36 +01:00
parent fc7ed85966
commit 5bba5dab75
2 changed files with 21 additions and 3 deletions

View File

@@ -158,8 +158,9 @@ get_lighting_color(RenderPrimitiveLighting *self, RenderState *state,
blocklevel = get_data(state, BLOCKLIGHT, x, y, z);
/* special half-step handling, stairs handling */
/* Anvil also needs to be here, blockid 145 */
if (block == 44 || block == 53 || block == 67 || block == 108 || block == 109 || block == 114 ||
block == 128 || block == 134 || block == 135 || block == 136 || block == 156) {
block == 128 || block == 134 || block == 135 || block == 136 || block == 145 || block == 156) {
unsigned int upper_block;
/* stairs and half-blocks take the skylevel from the upper block if it's transparent */