From ce6f8b355781a1fad95573fa1cb853568892eb9a Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 30 Mar 2021 20:54:16 +0100 Subject: Fix finisher generating invalid pumpkin Result was black spot in the ground because the meta exceeded 3 and the client didn't render anything. Been here since the beginning? http://github.com/cuberite/cuberite/blob/fbabf9ee8c7f0940e6f7d01e0362849bf4f6396b/source/FinishGen.cpp#L159 --- src/Generating/FinishGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp index 6e3f8b446..ca1798eb5 100644 --- a/src/Generating/FinishGen.cpp +++ b/src/Generating/FinishGen.cpp @@ -931,7 +931,7 @@ void cFinishGenSprinkleFoliage::GenFinish(cChunkDesc & a_ChunkDesc) else if ((val1 > 0.5) && (val2 < -0.5)) { float val3 = m_Noise.CubicNoise2D(xx * 0.01f + 10, zz * 0.01f + 10); - a_ChunkDesc.SetBlockTypeMeta(x, ++Top, z, E_BLOCK_PUMPKIN, static_cast(val3 * 8) % 4); + a_ChunkDesc.SetBlockTypeMeta(x, ++Top, z, E_BLOCK_PUMPKIN, static_cast(val3 * 8) % 4); } break; } // case E_BLOCK_GRASS -- cgit v1.2.3