mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Damage: Play no damage sound when immortal (#8350)
Add isImmortal server-side for proper enable_damage handling Rework log messages
This commit is contained in:
parent
2ba6785f09
commit
a687efa6df
4 changed files with 29 additions and 38 deletions
|
@ -1426,7 +1426,7 @@ void Server::SendMovement(session_t peer_id)
|
|||
|
||||
void Server::SendPlayerHPOrDie(PlayerSAO *playersao, const PlayerHPChangeReason &reason)
|
||||
{
|
||||
if (!g_settings->getBool("enable_damage"))
|
||||
if (playersao->isImmortal())
|
||||
return;
|
||||
|
||||
session_t peer_id = playersao->getPeerID();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue