Skip to content
Snippets Groups Projects
Commit 5b854f95 authored by kwolekr's avatar kwolekr
Browse files

Fix last singlenode modification

parent b0f39da1
No related branches found
No related tags found
No related merge requests found
......@@ -76,14 +76,15 @@ void MapgenSinglenode::makeChunk(BlockMakeData *data) {
c_node = CONTENT_AIR;
MapNode n_node(c_node);
int i = 0;
for (s16 z=node_min.Z; z<=node_max.Z; z++)
for (s16 y=node_min.Y; y<=node_max.Y; y++)
for (s16 x=node_min.X; x<=node_max.X; x++) {
if (vm->m_data[i].getContent() == CONTENT_IGNORE)
vm->m_data[i] = n_node;
i++;
for (s16 z = node_min.Z; z <= node_max.Z; z++)
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++) {
if (vm->m_data[i].getContent() == CONTENT_IGNORE)
vm->m_data[i] = n_node;
i++;
}
}
// Add top and bottom side of water to transforming_liquid queue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment