Fix last singlenode modification

This commit is contained in:
kwolekr 2013-03-29 13:18:09 -04:00
parent b0f39da131
commit 5b854f95d2
1 changed files with 8 additions and 7 deletions

View File

@ -76,15 +76,16 @@ void MapgenSinglenode::makeChunk(BlockMakeData *data) {
c_node = CONTENT_AIR; c_node = CONTENT_AIR;
MapNode n_node(c_node); MapNode n_node(c_node);
int i = 0;
for (s16 z = node_min.Z; z <= node_max.Z; z++) for (s16 z = node_min.Z; z <= node_max.Z; z++)
for (s16 y=node_min.Y; y<=node_max.Y; y++) for (s16 y = node_min.Y; y <= node_max.Y; y++) {
u32 i = vm->m_area.index(node_min.X, y, z);
for (s16 x = node_min.X; x <= node_max.X; x++) { for (s16 x = node_min.X; x <= node_max.X; x++) {
if (vm->m_data[i].getContent() == CONTENT_IGNORE) if (vm->m_data[i].getContent() == CONTENT_IGNORE)
vm->m_data[i] = n_node; vm->m_data[i] = n_node;
i++; i++;
} }
}
// Add top and bottom side of water to transforming_liquid queue // Add top and bottom side of water to transforming_liquid queue
updateLiquid(&data->transforming_liquid, node_min, node_max); updateLiquid(&data->transforming_liquid, node_min, node_max);