diff options
author | KingCol13 <48412633+KingCol13@users.noreply.github.com> | 2021-07-09 19:45:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 19:45:53 +0200 |
commit | 68776c4d5919638b3cecccd083155cd58ccac573 (patch) | |
tree | 8b1d508953c3f3f260ad1b33c40e7ef9674ff0d0 /src/Generating/FinishGen.cpp | |
parent | ProtoProxy: encrypt in-place (diff) | |
download | cuberite-68776c4d5919638b3cecccd083155cd58ccac573.tar cuberite-68776c4d5919638b3cecccd083155cd58ccac573.tar.gz cuberite-68776c4d5919638b3cecccd083155cd58ccac573.tar.bz2 cuberite-68776c4d5919638b3cecccd083155cd58ccac573.tar.lz cuberite-68776c4d5919638b3cecccd083155cd58ccac573.tar.xz cuberite-68776c4d5919638b3cecccd083155cd58ccac573.tar.zst cuberite-68776c4d5919638b3cecccd083155cd58ccac573.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 a6da93976..984957e60 100644 --- a/src/Generating/FinishGen.cpp +++ b/src/Generating/FinishGen.cpp @@ -613,7 +613,7 @@ void cFinishGenTallGrass::GenFinish(cChunkDesc & a_ChunkDesc) } else { - NIBBLETYPE meta = (m_Noise.IntNoise2DInt(xx * 50, zz * 50) / 7 % 2) + 1; + NIBBLETYPE meta = static_cast<NIBBLETYPE>((m_Noise.IntNoise2DInt(xx * 50, zz * 50) / 7 % 2) + 1); a_ChunkDesc.SetBlockTypeMeta(x, y, z, E_BLOCK_TALL_GRASS, meta); a_ChunkDesc.SetHeight(x, z, static_cast<HEIGHTTYPE>(y)); } |