diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-03-30 21:54:16 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-04-01 01:02:44 +0200 |
commit | ce6f8b355781a1fad95573fa1cb853568892eb9a (patch) | |
tree | 864c2903bb32766d923d246caa452fd4f3de3f29 | |
parent | Player data loading cleanup (diff) | |
download | cuberite-ce6f8b355781a1fad95573fa1cb853568892eb9a.tar cuberite-ce6f8b355781a1fad95573fa1cb853568892eb9a.tar.gz cuberite-ce6f8b355781a1fad95573fa1cb853568892eb9a.tar.bz2 cuberite-ce6f8b355781a1fad95573fa1cb853568892eb9a.tar.lz cuberite-ce6f8b355781a1fad95573fa1cb853568892eb9a.tar.xz cuberite-ce6f8b355781a1fad95573fa1cb853568892eb9a.tar.zst cuberite-ce6f8b355781a1fad95573fa1cb853568892eb9a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/FinishGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<int>(val3 * 8) % 4); + a_ChunkDesc.SetBlockTypeMeta(x, ++Top, z, E_BLOCK_PUMPKIN, static_cast<unsigned>(val3 * 8) % 4); } break; } // case E_BLOCK_GRASS |