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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user