summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-07 09:20:34 +0200
committerMattes D <github@xoft.cz>2014-08-07 09:20:34 +0200
commit27a818e1731fa3c590c7629a4221a322784f45c6 (patch)
tree3760bf6999ee9204b1202ff59ac681037c437498 /src/Entities
parentFixed nether wart digging. (diff)
parentOn destroy ender crystal, create bedrock and fire (diff)
downloadcuberite-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
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);
}