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/ChunkMap.cpp | |
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 '')
-rw-r--r-- | src/ChunkMap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp index d3f44bef8..0a8164b47 100644 --- a/src/ChunkMap.cpp +++ b/src/ChunkMap.cpp @@ -1252,7 +1252,7 @@ void cChunkMap::SetBlockMeta(int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYP -void cChunkMap::SetBlock(cWorldInterface & a_WorldInterface, int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, BLOCKTYPE a_BlockMeta) +void cChunkMap::SetBlock(cWorldInterface & a_WorldInterface, int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, BLOCKTYPE a_BlockMeta, bool a_SendToClients) { cChunkInterface ChunkInterface(this); if (a_BlockType == E_BLOCK_AIR) @@ -1267,7 +1267,7 @@ void cChunkMap::SetBlock(cWorldInterface & a_WorldInterface, int a_BlockX, int a cChunkPtr Chunk = GetChunk( ChunkX, ZERO_CHUNK_Y, ChunkZ ); if ((Chunk != NULL) && Chunk->IsValid()) { - Chunk->SetBlock(X, Y, Z, a_BlockType, a_BlockMeta ); + Chunk->SetBlock(X, Y, Z, a_BlockType, a_BlockMeta, a_SendToClients); m_World->GetSimulatorManager()->WakeUp(a_BlockX, a_BlockY, a_BlockZ, Chunk); } BlockHandler(a_BlockType)->OnPlaced(ChunkInterface, a_WorldInterface, a_BlockX, a_BlockY, a_BlockZ, a_BlockType, a_BlockMeta); |