mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Hopefully fixed the bug of huge mineral deposits rarely in seafloor sand
This commit is contained in:
@@ -2823,7 +2823,8 @@ void makeChunk(ChunkMakeData *data)
|
||||
u32 i = data->vmanip.m_area.index(v3s16(p2d.X, surface_y, p2d.Y));
|
||||
MapNode *n = &data->vmanip.m_data[i];
|
||||
if(n->d == CONTENT_GRASS)
|
||||
n->d = CONTENT_MUD;
|
||||
*n = MapNode(CONTENT_MUD);
|
||||
//n->d = CONTENT_MUD;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -2840,7 +2841,8 @@ void makeChunk(ChunkMakeData *data)
|
||||
break;
|
||||
|
||||
MapNode &n = data->vmanip.m_data[i];
|
||||
n.d = CONTENT_MUD;
|
||||
n = MapNode(CONTENT_MUD);
|
||||
//n.d = CONTENT_MUD;
|
||||
mudcount++;
|
||||
|
||||
data->vmanip.m_area.add_y(em, i, 1);
|
||||
|
Reference in New Issue
Block a user