diff options
-rw-r--r-- | src/environment.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/environment.cpp b/src/environment.cpp index ee4488476..e1f79803b 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -2567,6 +2567,8 @@ void ClientEnvironment::damageLocalPlayer(u8 damage, bool handle_hp) assert(lplayer); if(handle_hp){ + if (lplayer->hp == 0) // Don't damage a dead player + return; if(lplayer->hp > damage) lplayer->hp -= damage; else |