mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Disable autoforward if player is dead
This commit is contained in:
parent
ded5da7800
commit
3c395d908f
4 changed files with 12 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue