1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-18 10:45:27 +02:00

Disable autoforward if player is dead

This commit is contained in:
ANAND
2019-05-04 12:43:31 +05:30
committed by SmallJoker
parent ded5da7800
commit 3c395d908f
4 changed files with 12 additions and 7 deletions

View File

@@ -1541,6 +1541,9 @@ void GenericCAO::processMessage(const std::string &data)
m_hp = result_hp;
if (m_is_local_player)
m_env->getLocalPlayer()->hp = m_hp;
if (damage > 0)
{
if (m_hp <= 0)