mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Disable all HP handling if enable_damage is false
This commit is contained in:
parent
0437abbffb
commit
8aa190606e
2 changed files with 24 additions and 17 deletions
|
@ -2099,7 +2099,8 @@ void the_game(
|
|||
{
|
||||
break;
|
||||
}
|
||||
else if(event.type == CE_PLAYER_DAMAGE)
|
||||
else if(event.type == CE_PLAYER_DAMAGE &&
|
||||
client.getHP() != 0)
|
||||
{
|
||||
//u16 damage = event.player_damage.amount;
|
||||
//infostream<<"Player damage: "<<damage<<std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue