summaryrefslogtreecommitdiffstats
path: root/src/Chunk.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-02 20:49:14 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-02 20:49:14 +0200
commit5fc7592cba384f0bc89dca7f531f3e823224255b (patch)
treeb6a5d04f0ce4b2ec949ccc144513d969af3fdd04 /src/Chunk.h
parentSmall tweak for mobs (diff)
parentSuggestions two (diff)
downloadcuberite-5fc7592cba384f0bc89dca7f531f3e823224255b.tar
cuberite-5fc7592cba384f0bc89dca7f531f3e823224255b.tar.gz
cuberite-5fc7592cba384f0bc89dca7f531f3e823224255b.tar.bz2
cuberite-5fc7592cba384f0bc89dca7f531f3e823224255b.tar.lz
cuberite-5fc7592cba384f0bc89dca7f531f3e823224255b.tar.xz
cuberite-5fc7592cba384f0bc89dca7f531f3e823224255b.tar.zst
cuberite-5fc7592cba384f0bc89dca7f531f3e823224255b.zip
Diffstat (limited to 'src/Chunk.h')
-rw-r--r--src/Chunk.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Chunk.h b/src/Chunk.h
index d95537acf..e92a5bc29 100644
--- a/src/Chunk.h
+++ b/src/Chunk.h
@@ -141,7 +141,7 @@ public:
cWorld * GetWorld(void) const { return m_World; }
- void SetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta );
+ void SetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, bool a_SendToClients = true);
// SetBlock() does a lot of work (heightmap, tickblocks, blockentities) so a BlockIdx version doesn't make sense
void SetBlock( const Vector3i & a_RelBlockPos, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta ) { SetBlock( a_RelBlockPos.x, a_RelBlockPos.y, a_RelBlockPos.z, a_BlockType, a_BlockMeta ); }
@@ -154,7 +154,7 @@ public:
/** Queues all 6 neighbors of the specified block for ticking (m_ToTickQueue). If any are outside the chunk, relays the checking to the proper neighboring chunk */
void QueueTickBlockNeighbors(int a_RelX, int a_RelY, int a_RelZ);
- void FastSetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, BLOCKTYPE a_BlockMeta ); // Doesn't force block updates on neighbors, use for simple changes such as grass growing etc.
+ 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(Vector3i a_cords) const { return GetBlock(a_cords.x, a_cords.y, a_cords.z);}
void GetBlockTypeMeta(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta);