summaryrefslogtreecommitdiffstats
path: root/src/Entities/EnderCrystal.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-08-09 14:25:49 +0200
committermadmaxoft <github@xoft.cz>2014-08-09 14:25:49 +0200
commit4b1505f39d6a77b0fd389d1170a1dcc901f602cd (patch)
tree036067995500e4d770eeecbf3e3b9b791d604bb5 /src/Entities/EnderCrystal.cpp
parentDebuggers: Simple cRankManager test case. (diff)
parentMerge pull request #1295 from mc-server/crystal (diff)
downloadcuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar
cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.gz
cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.bz2
cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.lz
cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.xz
cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.tar.zst
cuberite-4b1505f39d6a77b0fd389d1170a1dcc901f602cd.zip
Diffstat (limited to 'src/Entities/EnderCrystal.cpp')
-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);
}