From 4e43a8d51a3b564eeca32fedad7caf0168d3200a Mon Sep 17 00:00:00 2001 From: Brendan Date: Thu, 25 Aug 2011 19:11:49 -0700 Subject: [PATCH] changed hex notation to CONTENT_GLOWSTONE, added glowstone to /* add grass and mud*/ --- src/mapgen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 054dd064a..4d11a85c2 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -1786,7 +1786,7 @@ void make_block(BlockMakeData *data) u32 vi = vmanip.m_area.index(p); if(vmanip.m_data[vi].getContent() == CONTENT_STONE) if(mineralrandom.next()%8 == 0) - vmanip.m_data[vi] = MapNode(0x81a); // relies on the data value for glowstone being defined as 0x819 in content_mapnode.h. Poor coding I know, but I couldn't figure out how to do it any other way. I'm pretty sure this is also why the glowstone shows up even when the block is suppsosed to be mud or sand or whatever. + vmanip.m_data[vi] = MapNode(CONTENT_GLOWSTONE); } } } @@ -2028,6 +2028,7 @@ void make_block(BlockMakeData *data) if((vmanip.m_data[i].getContent() == CONTENT_STONE || vmanip.m_data[i].getContent() == CONTENT_GRASS + || vmanip.m_data[i].getContent() == CONTENT_GLOWSTONE || vmanip.m_data[i].getContent() == CONTENT_MUD || vmanip.m_data[i].getContent() == CONTENT_SAND || vmanip.m_data[i].getContent() == CONTENT_GRAVEL