diff options
author | Mattes D <github@xoft.cz> | 2014-08-07 09:20:34 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-08-07 09:20:34 +0200 |
commit | 27a818e1731fa3c590c7629a4221a322784f45c6 (patch) | |
tree | 3760bf6999ee9204b1202ff59ac681037c437498 | |
parent | Fixed nether wart digging. (diff) | |
parent | On destroy ender crystal, create bedrock and fire (diff) | |
download | cuberite-27a818e1731fa3c590c7629a4221a322784f45c6.tar cuberite-27a818e1731fa3c590c7629a4221a322784f45c6.tar.gz cuberite-27a818e1731fa3c590c7629a4221a322784f45c6.tar.bz2 cuberite-27a818e1731fa3c590c7629a4221a322784f45c6.tar.lz cuberite-27a818e1731fa3c590c7629a4221a322784f45c6.tar.xz cuberite-27a818e1731fa3c590c7629a4221a322784f45c6.tar.zst cuberite-27a818e1731fa3c590c7629a4221a322784f45c6.zip |
-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); } |