diff options
author | Michal Havlíček <80639037+havel06@users.noreply.github.com> | 2023-04-08 00:11:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-08 00:11:10 +0200 |
commit | 669392d44a0f74e83b2702fa64d4f8bfb2ec643c (patch) | |
tree | 2c80eca6e9504c6475b00e5fd72b18d308d06e0f /src/Chunk.cpp | |
parent | refactor: removed m_MojangAPI from RankManager (#5483) (diff) | |
download | cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar.gz cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar.bz2 cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar.lz cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar.xz cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar.zst cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.zip |
Diffstat (limited to 'src/Chunk.cpp')
-rw-r--r-- | src/Chunk.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp index c9bd1dbcf..a693e08e6 100644 --- a/src/Chunk.cpp +++ b/src/Chunk.cpp @@ -1980,3 +1980,12 @@ NIBBLETYPE cChunk::GetTimeAlteredLight(NIBBLETYPE a_Skylight) const // Because NIBBLETYPE is unsigned, we clamp it to 0 .. 15 by checking for values above 15 return (a_Skylight < 16)? a_Skylight : 0; } + + + + + +bool cChunk::IsSlimeChunk() const +{ + return m_World->IsSlimeChunk(m_PosX, m_PosZ); +} |