diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-08-10 16:35:07 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-08-10 16:35:07 +0200 |
commit | 546dfaad3ecfd92ecb7c8e903c7f4ff340125fae (patch) | |
tree | 4abf38f7d8b3a228361bf6d6713cc960a9b5d85a /src/Entities/EnderCrystal.cpp | |
parent | Renamed m_DoDaylightCycle to m_CycleDaylight. (diff) | |
parent | Removed an old and outdated comment. (diff) | |
download | cuberite-546dfaad3ecfd92ecb7c8e903c7f4ff340125fae.tar cuberite-546dfaad3ecfd92ecb7c8e903c7f4ff340125fae.tar.gz cuberite-546dfaad3ecfd92ecb7c8e903c7f4ff340125fae.tar.bz2 cuberite-546dfaad3ecfd92ecb7c8e903c7f4ff340125fae.tar.lz cuberite-546dfaad3ecfd92ecb7c8e903c7f4ff340125fae.tar.xz cuberite-546dfaad3ecfd92ecb7c8e903c7f4ff340125fae.tar.zst cuberite-546dfaad3ecfd92ecb7c8e903c7f4ff340125fae.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/EnderCrystal.cpp | 6 |
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); } |