diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-02-08 22:21:48 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-02-08 22:21:48 +0100 |
commit | 3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0 (patch) | |
tree | 263dd59173d388fa8e7c83d51c928004a230737a /src/ChunkMap.cpp | |
parent | Protocol 1.7: Fixed Coverity issues. (diff) | |
download | cuberite-3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0.tar cuberite-3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0.tar.gz cuberite-3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0.tar.bz2 cuberite-3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0.tar.lz cuberite-3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0.tar.xz cuberite-3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0.tar.zst cuberite-3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ChunkMap.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp index 2dd04f801..b9d4ed55b 100644 --- a/src/ChunkMap.cpp +++ b/src/ChunkMap.cpp @@ -1322,10 +1322,7 @@ void cChunkMap::SetBlockMeta(int a_BlockX, int a_BlockY, int a_BlockZ, NIBBLETYP void cChunkMap::SetBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, bool a_SendToClients) { cChunkInterface ChunkInterface(this); - if (a_BlockType == E_BLOCK_AIR) - { - BlockHandler(GetBlock(a_BlockX, a_BlockY, a_BlockZ))->OnDestroyed(ChunkInterface, *m_World, a_BlockX, a_BlockY, a_BlockZ); - } + BlockHandler(GetBlock(a_BlockX, a_BlockY, a_BlockZ))->OnDestroyed(ChunkInterface, *m_World, a_BlockX, a_BlockY, a_BlockZ); int ChunkX, ChunkZ, X = a_BlockX, Y = a_BlockY, Z = a_BlockZ; cChunkDef::AbsoluteToRelative( X, Y, Z, ChunkX, ChunkZ); |