diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-03-09 22:44:32 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-03-09 22:44:32 +0100 |
commit | 09c5542123bcde7d9c40c35679f3ff499eb50125 (patch) | |
tree | f357cf6e6a6cb8ce10ab26f7379d07683a84ac54 /src/Items/ItemLighter.h | |
parent | Merge pull request #731 from mc-server/ballisticmissiles (diff) | |
parent | Change tnt documentation to ticks (diff) | |
download | cuberite-09c5542123bcde7d9c40c35679f3ff499eb50125.tar cuberite-09c5542123bcde7d9c40c35679f3ff499eb50125.tar.gz cuberite-09c5542123bcde7d9c40c35679f3ff499eb50125.tar.bz2 cuberite-09c5542123bcde7d9c40c35679f3ff499eb50125.tar.lz cuberite-09c5542123bcde7d9c40c35679f3ff499eb50125.tar.xz cuberite-09c5542123bcde7d9c40c35679f3ff499eb50125.tar.zst cuberite-09c5542123bcde7d9c40c35679f3ff499eb50125.zip |
Diffstat (limited to 'src/Items/ItemLighter.h')
-rw-r--r-- | src/Items/ItemLighter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Items/ItemLighter.h b/src/Items/ItemLighter.h index cc7daeb08..18873e911 100644 --- a/src/Items/ItemLighter.h +++ b/src/Items/ItemLighter.h @@ -33,8 +33,8 @@ public: case E_BLOCK_TNT: { // Activate the TNT: - a_World->BroadcastSoundEffect("game.tnt.primed", a_BlockX * 8, a_BlockY * 8, a_BlockZ * 8, 0.5f, 0.6f); - a_World->SpawnPrimedTNT(a_BlockX + 0.5, a_BlockY + 0.5, a_BlockZ + 0.5, 4); // 4 seconds to boom + a_World->BroadcastSoundEffect("game.tnt.primed", a_BlockX * 8, a_BlockY * 8, a_BlockZ * 8, 1.0f, 1.0f); + a_World->SpawnPrimedTNT(a_BlockX + 0.5, a_BlockY + 0.5, a_BlockZ + 0.5); // 80 ticks to boom a_World->SetBlock(a_BlockX,a_BlockY,a_BlockZ, E_BLOCK_AIR, 0); break; } |