Make iron bars and glass panes stick to everything but air.
This commit is contained in:
@@ -284,14 +284,15 @@ generate_pseudo_data(RenderState *state, unsigned char ancilData) {
|
|||||||
|
|
||||||
return final_data;
|
return final_data;
|
||||||
|
|
||||||
/* portal, iron bars and glass panes
|
} else if ((state->block == 101) || (state->block == 102)) {
|
||||||
* Note: iron bars and glass panes "stick" to other blocks, but
|
/* iron bars and glass panes:
|
||||||
* at the moment of writing this is not clear which ones stick and
|
* they seem to stick to almost everything but air, but
|
||||||
* which others no, so for the moment stick only with himself.
|
* not sure yet! Still a TODO! */
|
||||||
* This is a TODO!
|
/* return check adjacent blocks with air, bit inverted */
|
||||||
*/
|
return check_adjacent_blocks(state, x, y, z, 0) ^ 0x0f;
|
||||||
} else if ((state->block == 90) || (state->block == 101) ||
|
|
||||||
(state->block == 102) || (state->block == 113)) {
|
} else if ((state->block == 90) || (state->block == 113)) {
|
||||||
|
/* portal and nether brick fences */
|
||||||
return check_adjacent_blocks(state, x, y, z, state->block);
|
return check_adjacent_blocks(state, x, y, z, state->block);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user