diff options
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Entity.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index 5dcef330a..30aa87f37 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -878,6 +878,12 @@ void cEntity::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) m_InvulnerableTicks--; } + if ((GetPosY() < 0) && (!IsPlayer())) + { + Destroy(); + return; + } + if (m_AttachedTo != nullptr) { SetPosition(m_AttachedTo->GetPosition()); |