mirror of
https://github.com/minetest/minetest.git
synced 2025-01-11 15:57:29 +01:00
Don't replace existing nodes in singlenode mapgen
This commit is contained in:
parent
d01b74d00a
commit
b0f39da131
@ -74,11 +74,16 @@ void MapgenSinglenode::makeChunk(BlockMakeData *data) {
|
||||
content_t c_node = ndef->getId("mapgen_singlenode");
|
||||
if (c_node == CONTENT_IGNORE)
|
||||
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++)
|
||||
{
|
||||
data->vmanip->setNode(v3s16(x,y,z), MapNode(c_node));
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user