0

nether: move nether roof blocks into new class

This commit is contained in:
Nicolas F
2020-08-05 19:01:52 +02:00
parent 0776bf0a93
commit 1d40ea77d4
4 changed files with 17 additions and 4 deletions

View File

@@ -37,9 +37,7 @@ walk_chunk(RenderState* state, RenderPrimitiveNether* data) {
for (y = NETHER_ROOF - 1; y >= 0; y--) {
blockid = get_data(state, BLOCKS, x, y - (state->chunky * 16), z);
if (block_class_is_subset(blockid, (mc_block_t[]){block_bedrock, block_netherrack,
block_quartz_ore, block_lava, block_soul_sand, block_basalt, block_blackstone,
block_soul_soil, block_nether_gold_ore}, 9))
if (block_class_is_subset(blockid, block_class_nether_roof, block_class_nether_roof_len))
data->remove_block[x + 1][y][z + 1] = true;
else
break;