summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-12-21 15:31:44 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2020-12-22 00:21:01 +0100
commitf3ec768dfbad65e269da9c43f1ca982d0fb7234d (patch)
tree5b82daad6716a8af8779565fb9671502d415668d /src/Chunk.cpp
parentPrepare for 1.15+ (#4856) (diff)
downloadcuberite-f3ec768dfbad65e269da9c43f1ca982d0fb7234d.tar
cuberite-f3ec768dfbad65e269da9c43f1ca982d0fb7234d.tar.gz
cuberite-f3ec768dfbad65e269da9c43f1ca982d0fb7234d.tar.bz2
cuberite-f3ec768dfbad65e269da9c43f1ca982d0fb7234d.tar.lz
cuberite-f3ec768dfbad65e269da9c43f1ca982d0fb7234d.tar.xz
cuberite-f3ec768dfbad65e269da9c43f1ca982d0fb7234d.tar.zst
cuberite-f3ec768dfbad65e269da9c43f1ca982d0fb7234d.zip
Diffstat (limited to 'src/Chunk.cpp')
-rw-r--r--src/Chunk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index 7bf7f0567..eb44828e2 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -270,7 +270,7 @@ void cChunk::MarkLoadFailed(void)
-void cChunk::GetAllData(cChunkDataCallback & a_Callback)
+void cChunk::GetAllData(cChunkDataCallback & a_Callback) const
{
ASSERT(m_Presence == cpPresent);
@@ -2027,7 +2027,7 @@ void cChunk::GetBlockTypeMeta(Vector3i a_RelPos, BLOCKTYPE & a_BlockType, NIBBLE
-void cChunk::GetBlockInfo(Vector3i a_RelPos, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_Meta, NIBBLETYPE & a_SkyLight, NIBBLETYPE & a_BlockLight)
+void cChunk::GetBlockInfo(Vector3i a_RelPos, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_Meta, NIBBLETYPE & a_SkyLight, NIBBLETYPE & a_BlockLight) const
{
a_BlockType = GetBlock(a_RelPos);
a_Meta = m_ChunkData.GetMeta(a_RelPos);