diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-07-29 20:30:38 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-04 19:15:18 +0200 |
commit | 6bdd130aab51b630918ed664c4389cf33bcb2e06 (patch) | |
tree | eed35c8716f9ea18afe8fd909c09e8595928a671 /src/Items/ItemLighter.h | |
parent | Do not GetBlock individually in simulators (diff) | |
download | cuberite-6bdd130aab51b630918ed664c4389cf33bcb2e06.tar cuberite-6bdd130aab51b630918ed664c4389cf33bcb2e06.tar.gz cuberite-6bdd130aab51b630918ed664c4389cf33bcb2e06.tar.bz2 cuberite-6bdd130aab51b630918ed664c4389cf33bcb2e06.tar.lz cuberite-6bdd130aab51b630918ed664c4389cf33bcb2e06.tar.xz cuberite-6bdd130aab51b630918ed664c4389cf33bcb2e06.tar.zst cuberite-6bdd130aab51b630918ed664c4389cf33bcb2e06.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 d4469a31b..a7e192ee6 100644 --- a/src/Items/ItemLighter.h +++ b/src/Items/ItemLighter.h @@ -65,7 +65,7 @@ public: case E_BLOCK_TNT: { // Activate the TNT: - a_World->SetBlock(a_ClickedBlockPos, E_BLOCK_AIR, 0); + a_World->DigBlock(a_ClickedBlockPos); a_World->SpawnPrimedTNT(Vector3d(a_ClickedBlockPos) + Vector3d(0.5, 0.5, 0.5)); // 80 ticks to boom break; } @@ -79,7 +79,7 @@ public: } if (a_World->GetBlock(FirePos) == E_BLOCK_AIR) { - a_World->SetBlock(FirePos, E_BLOCK_FIRE, 0); + a_World->PlaceBlock(FirePos, E_BLOCK_FIRE, 0); a_World->BroadcastSoundEffect("item.flintandsteel.use", FirePos, 1.0f, 1.04f); break; } |