summaryrefslogtreecommitdiffstats
path: root/src/Entities/EnderCrystal.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-08-06 23:16:36 +0200
committerarchshift <admin@archshift.com>2014-08-06 23:16:36 +0200
commitbeab61bbfeca0280bce941c4175837109282c828 (patch)
tree2f7e1ab5272f795571fd4cd33ce606bc9784e585 /src/Entities/EnderCrystal.cpp
parentMerge pull request #1291 from mc-server/RedstoneCleanUp (diff)
downloadcuberite-beab61bbfeca0280bce941c4175837109282c828.tar
cuberite-beab61bbfeca0280bce941c4175837109282c828.tar.gz
cuberite-beab61bbfeca0280bce941c4175837109282c828.tar.bz2
cuberite-beab61bbfeca0280bce941c4175837109282c828.tar.lz
cuberite-beab61bbfeca0280bce941c4175837109282c828.tar.xz
cuberite-beab61bbfeca0280bce941c4175837109282c828.tar.zst
cuberite-beab61bbfeca0280bce941c4175837109282c828.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/EnderCrystal.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Entities/EnderCrystal.cpp b/src/Entities/EnderCrystal.cpp
index bf86a6c42..c17bb608e 100644
--- a/src/Entities/EnderCrystal.cpp
+++ b/src/Entities/EnderCrystal.cpp
@@ -32,9 +32,6 @@ void cEnderCrystal::SpawnOn(cClientHandle & a_ClientHandle)
void cEnderCrystal::Tick(float a_Dt, cChunk & a_Chunk)
{
UNUSED(a_Dt);
-
- a_Chunk.SetBlock(POSX_TOINT, POSY_TOINT, POSZ_TOINT, E_BLOCK_FIRE, 0);
-
// No further processing (physics e.t.c.) is needed
}
@@ -49,6 +46,9 @@ void cEnderCrystal::KilledBy(TakeDamageInfo & a_TDI)
m_World->DoExplosionAt(6.0, GetPosX(), GetPosY(), GetPosZ(), true, esEnderCrystal, this);
Destroy();
+
+ m_World->SetBlock(POSX_TOINT, POSY_TOINT, POSZ_TOINT, E_BLOCK_BEDROCK, 0);
+ m_World->SetBlock(POSX_TOINT, POSY_TOINT + 1, POSZ_TOINT, E_BLOCK_FIRE, 0);
}