diff options
author | madmaxoft <github@xoft.cz> | 2013-08-18 20:00:50 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-18 20:00:50 +0200 |
commit | 861d5c75c968ab1fa5fbb3388b02ebd2e85afc56 (patch) | |
tree | 4d5cf06aac0a07418fbb0e85f781558810690cba /source/ChunkMap.cpp | |
parent | Fixed piston code griefing damage. (diff) | |
download | cuberite-861d5c75c968ab1fa5fbb3388b02ebd2e85afc56.tar cuberite-861d5c75c968ab1fa5fbb3388b02ebd2e85afc56.tar.gz cuberite-861d5c75c968ab1fa5fbb3388b02ebd2e85afc56.tar.bz2 cuberite-861d5c75c968ab1fa5fbb3388b02ebd2e85afc56.tar.lz cuberite-861d5c75c968ab1fa5fbb3388b02ebd2e85afc56.tar.xz cuberite-861d5c75c968ab1fa5fbb3388b02ebd2e85afc56.tar.zst cuberite-861d5c75c968ab1fa5fbb3388b02ebd2e85afc56.zip |
Diffstat (limited to '')
-rw-r--r-- | source/ChunkMap.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source/ChunkMap.cpp b/source/ChunkMap.cpp index 4180ae327..5a16495e6 100644 --- a/source/ChunkMap.cpp +++ b/source/ChunkMap.cpp @@ -1171,24 +1171,6 @@ void cChunkMap::SetBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_B -void cChunkMap::SetServerBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, BLOCKTYPE a_BlockMeta) -{ - int ChunkX, ChunkZ, X = a_BlockX, Y = a_BlockY, Z = a_BlockZ; - cChunkDef::AbsoluteToRelative( X, Y, Z, ChunkX, ChunkZ ); - - cCSLock Lock(m_CSLayers); - cChunkPtr Chunk = GetChunk( ChunkX, ZERO_CHUNK_Y, ChunkZ ); - if ((Chunk != NULL) && Chunk->IsValid()) - { - Chunk->SetServerBlock(X, Y, Z, a_BlockType, a_BlockMeta ); - m_World->GetSimulatorManager()->WakeUp(a_BlockX, a_BlockY, a_BlockZ, Chunk); - } -} - - - - - bool cChunkMap::GetBlockTypeMeta(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta) { int ChunkX, ChunkZ, X = a_BlockX, Y = a_BlockY, Z = a_BlockZ; |