aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/server.cpp b/src/server.cpp
index e33a675c4..8fbc0f793 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -4307,13 +4307,12 @@ void Server::HandlePlayerHP(Player *player, s16 damage)
if(srp->m_respawn_active)
return;
- if(damage == 0)
- return;
-
if(player->hp > damage)
{
- player->hp -= damage;
- SendPlayerHP(player);
+ if(damage != 0){
+ player->hp -= damage;
+ SendPlayerHP(player);
+ }
return;
}