mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
No damage effects on hp_max change (#11846)
This commit is contained in:
parent
3eafcab64e
commit
f4a53f7ee6
9 changed files with 23 additions and 11 deletions
|
@ -2605,6 +2605,9 @@ void Game::handleClientEvent_PlayerDamage(ClientEvent *event, CameraOrientation
|
|||
if (client->modsLoaded())
|
||||
client->getScript()->on_damage_taken(event->player_damage.amount);
|
||||
|
||||
if (!event->player_damage.effect)
|
||||
return;
|
||||
|
||||
// Damage flash and hurt tilt are not used at death
|
||||
if (client->getHP() > 0) {
|
||||
LocalPlayer *player = client->getEnv().getLocalPlayer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue