diff options
author | Mattes D <github@xoft.cz> | 2014-06-03 19:02:40 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-06-03 19:02:40 +0200 |
commit | 0c5492946b84aefe4f5d366d14de0ceb5e97b189 (patch) | |
tree | 37c13749e6050794ada0a1e1d42c9d998f3c8040 /src/Chunk.h | |
parent | docs/Generator: Shrunk the hand-drawn images by 50 %. (diff) | |
parent | Merge remote-tracking branch 'origin/pistonfixes' (diff) | |
download | cuberite-0c5492946b84aefe4f5d366d14de0ceb5e97b189.tar cuberite-0c5492946b84aefe4f5d366d14de0ceb5e97b189.tar.gz cuberite-0c5492946b84aefe4f5d366d14de0ceb5e97b189.tar.bz2 cuberite-0c5492946b84aefe4f5d366d14de0ceb5e97b189.tar.lz cuberite-0c5492946b84aefe4f5d366d14de0ceb5e97b189.tar.xz cuberite-0c5492946b84aefe4f5d366d14de0ceb5e97b189.tar.zst cuberite-0c5492946b84aefe4f5d366d14de0ceb5e97b189.zip |
Diffstat (limited to 'src/Chunk.h')
-rw-r--r-- | src/Chunk.h | 4 |
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); |