summaryrefslogtreecommitdiffstats
path: root/src/ChunkMap.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-17 11:39:38 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-17 11:39:38 +0200
commitc3b4b70a73502ae011f7954e9d9d1501b7f04702 (patch)
tree9ca4a7172c2405adaeca14ecc9145d93e3cf67d7 /src/ChunkMap.cpp
parentMerge pull request #1079 from mc-server/potions (diff)
parentDerp. (diff)
downloadcuberite-c3b4b70a73502ae011f7954e9d9d1501b7f04702.tar
cuberite-c3b4b70a73502ae011f7954e9d9d1501b7f04702.tar.gz
cuberite-c3b4b70a73502ae011f7954e9d9d1501b7f04702.tar.bz2
cuberite-c3b4b70a73502ae011f7954e9d9d1501b7f04702.tar.lz
cuberite-c3b4b70a73502ae011f7954e9d9d1501b7f04702.tar.xz
cuberite-c3b4b70a73502ae011f7954e9d9d1501b7f04702.tar.zst
cuberite-c3b4b70a73502ae011f7954e9d9d1501b7f04702.zip
Diffstat (limited to '')
-rw-r--r--src/ChunkMap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ChunkMap.cpp b/src/ChunkMap.cpp
index a12be04cf..b9bb39aa8 100644
--- a/src/ChunkMap.cpp
+++ b/src/ChunkMap.cpp
@@ -1837,7 +1837,7 @@ void cChunkMap::DoExplosionAt(double a_ExplosionSize, double a_BlockX, double a_
// Activate the TNT, with a random fuse between 10 to 30 game ticks
int FuseTime = 10 + m_World->GetTickRandomNumber(20);
m_World->SpawnPrimedTNT(a_BlockX + x + 0.5, a_BlockY + y + 0.5, a_BlockZ + z + 0.5, FuseTime);
- area.SetBlockType(bx + x, by + y, bz + z, E_BLOCK_AIR);
+ area.SetBlockTypeMeta(bx + x, by + y, bz + z, E_BLOCK_AIR, 0);
a_BlocksAffected.push_back(Vector3i(bx + x, by + y, bz + z));
break;
}
@@ -1894,7 +1894,7 @@ void cChunkMap::DoExplosionAt(double a_ExplosionSize, double a_BlockX, double a_
m_World->SpawnFallingBlock(bx + x, by + y + 5, bz + z, Block, area.GetBlockMeta(bx + x, by + y, bz + z));
}
- area.SetBlockType(bx + x, by + y, bz + z, E_BLOCK_AIR);
+ area.SetBlockTypeMeta(bx + x, by + y, bz + z, E_BLOCK_AIR, 0);
a_BlocksAffected.push_back(Vector3i(bx + x, by + y, bz + z));
break;