summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Laubstein <julianlaubstein@yahoo.de>2014-10-19 15:11:53 +0200
committerJulian Laubstein <julianlaubstein@yahoo.de>2014-10-19 15:11:53 +0200
commit3082f0d0460d84500259c854d9bf3b1997827d90 (patch)
tree067c74af47d0e9388ba44009869548cf707eccaf
parentAdded mechanics placeable on halfslabs (diff)
downloadcuberite-3082f0d0460d84500259c854d9bf3b1997827d90.tar
cuberite-3082f0d0460d84500259c854d9bf3b1997827d90.tar.gz
cuberite-3082f0d0460d84500259c854d9bf3b1997827d90.tar.bz2
cuberite-3082f0d0460d84500259c854d9bf3b1997827d90.tar.lz
cuberite-3082f0d0460d84500259c854d9bf3b1997827d90.tar.xz
cuberite-3082f0d0460d84500259c854d9bf3b1997827d90.tar.zst
cuberite-3082f0d0460d84500259c854d9bf3b1997827d90.zip
Diffstat (limited to '')
-rw-r--r--src/Chunk.cpp2
-rw-r--r--src/Chunk.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index d03e0bf21..7d6d88b26 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -2614,7 +2614,7 @@ BLOCKTYPE cChunk::GetBlock(int a_RelX, int a_RelY, int a_RelZ) const
-void cChunk::GetBlockTypeMeta(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta)
+void cChunk::GetBlockTypeMeta(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta) const
{
a_BlockType = GetBlock(a_RelX, a_RelY, a_RelZ);
a_BlockMeta = m_ChunkData.GetMeta(a_RelX, a_RelY, a_RelZ);
diff --git a/src/Chunk.h b/src/Chunk.h
index c50be263f..5f8fcaf7b 100644
--- a/src/Chunk.h
+++ b/src/Chunk.h
@@ -186,7 +186,7 @@ public:
void FastSetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, BLOCKTYPE a_BlockMeta, bool a_SendToClients = true); // Doesn't force block updates on neighbors, use for simple changes such as grass growing etc.
BLOCKTYPE GetBlock(int a_RelX, int a_RelY, int a_RelZ) const;
BLOCKTYPE GetBlock(const Vector3i & a_RelCoords) const { return GetBlock(a_RelCoords.x, a_RelCoords.y, a_RelCoords.z); }
- void GetBlockTypeMeta(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta);
+ void GetBlockTypeMeta(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta) const;
void GetBlockInfo (int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_Meta, NIBBLETYPE & a_SkyLight, NIBBLETYPE & a_BlockLight);
/** Returns the chunk into which the specified block belongs, by walking the neighbors.