1
0
Fork 0
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:
PilzAdam 2013-01-06 15:32:23 +01:00
parent 0437abbffb
commit 8aa190606e
2 changed files with 24 additions and 17 deletions

View file

@ -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;