0

Added glass panes and iron bars. Is not marvellous, but it works!

This commit is contained in:
Alejandro Aguilera
2011-09-11 15:15:53 +02:00
parent 17c6d85c3e
commit d7bb11b2b4
2 changed files with 46 additions and 4 deletions

View File

@@ -283,7 +283,9 @@ generate_pseudo_data(RenderState *state, unsigned char ancilData) {
return final_data;
} else if (state->block == 90) {
/* fences, iron bars and glass panes */
} else if ((state->block == 90) || (state->block == 101) ||
(state->block == 102)) {
return check_adjacent_blocks(state, x, y, z, state->block);
}
@@ -413,11 +415,12 @@ chunk_render(PyObject *self, PyObject *args) {
state.block_data = ancilData;
/* block that need pseudo ancildata:
* grass, water, glass, chest, restone wire,
* ice, fence and portal. */
* ice, fence, portal, iron bars, glass panes */
if ((state.block == 2) || (state.block == 9) ||
(state.block == 20) || (state.block == 54) ||
(state.block == 55) || (state.block == 79) ||
(state.block == 85) || (state.block == 90)) {
(state.block == 85) || (state.block == 90) ||
(state.block == 101) || (state.block == 102)) {
ancilData = generate_pseudo_data(&state, ancilData);
state.block_pdata = ancilData;
} else {