summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-03-14 22:44:04 +0100
committerMattes D <github@xoft.cz>2015-03-14 22:44:04 +0100
commit65d2ef32e920580ab5408bd1e2fcb3da42c8eec1 (patch)
treebfbef765d31cf6b78490f013dad5d600e785195e /src/ChunkMap.cpp
parentMerge pull request #1808 from tumultenrx/master (diff)
parentReverted non-functional changes (diff)
downloadcuberite-65d2ef32e920580ab5408bd1e2fcb3da42c8eec1.tar
cuberite-65d2ef32e920580ab5408bd1e2fcb3da42c8eec1.tar.gz
cuberite-65d2ef32e920580ab5408bd1e2fcb3da42c8eec1.tar.bz2
cuberite-65d2ef32e920580ab5408bd1e2fcb3da42c8eec1.tar.lz
cuberite-65d2ef32e920580ab5408bd1e2fcb3da42c8eec1.tar.xz
cuberite-65d2ef32e920580ab5408bd1e2fcb3da42c8eec1.tar.zst
cuberite-65d2ef32e920580ab5408bd1e2fcb3da42c8eec1.zip
Diffstat (limited to 'src/ChunkMap.cpp')
-rw-r--r--src/ChunkMap.cpp5
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);