1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

Fix for decor so they aren't sniped by the fix

This commit is contained in:
ExeVirus 2025-06-04 22:23:35 -04:00
parent 17e21a98b1
commit e877bd6cf7
2 changed files with 12 additions and 4 deletions

View file

@ -774,9 +774,13 @@ void MapgenBasic::removeOvergeneratedCStone()
for (s16 z = node_min.Z; z <= node_max.Z; z++)
for (s16 x = node_min.X; x <= node_max.X; x++) {
u32 vi = vm->m_area.index(x, node_max.Y + 1, z); // top
vm->m_data[vi].setContent(CONTENT_IGNORE);
if (vm->m_data[vi].getContent() == c_stone) {
vm->m_data[vi].setContent(CONTENT_IGNORE);
}
vi = vm->m_area.index(x, node_min.Y - 1, z); // bottom
vm->m_data[vi].setContent(CONTENT_IGNORE);
if (vm->m_data[vi].getContent() == c_stone) {
vm->m_data[vi].setContent(CONTENT_IGNORE);
}
}
}

View file

@ -631,9 +631,13 @@ void MapgenV6::removeOvergeneratedCStone()
for (s16 z = node_min.Z; z <= node_max.Z; z++)
for (s16 x = node_min.X; x <= node_max.X; x++) {
u32 vi = vm->m_area.index(x, node_max.Y + 1, z); // top
vm->m_data[vi].setContent(CONTENT_IGNORE);
if (vm->m_data[vi].getContent() == c_stone) {
vm->m_data[vi].setContent(CONTENT_IGNORE);
}
vi = vm->m_area.index(x, node_min.Y - 1, z); // bottom
vm->m_data[vi].setContent(CONTENT_IGNORE);
if (vm->m_data[vi].getContent() == c_stone) {
vm->m_data[vi].setContent(CONTENT_IGNORE);
}
}
}