From 821d5bb4cc3a9047187955ab897ea28f9b9aa957 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 3 May 2011 17:33:13 +0300 Subject: Hopefully fixed the bug of huge mineral deposits rarely in seafloor sand --- src/map.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index ddf8d863e..02614e1ae 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -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); -- cgit v1.2.3