mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Customizeable max breath for players (#6411)
* Customizeable maximal breath for players
This commit is contained in:
parent
7640749d68
commit
edbc533414
11 changed files with 57 additions and 47 deletions
|
@ -2542,7 +2542,7 @@ void Server::RespawnPlayer(u16 peer_id)
|
|||
<< " respawns" << std::endl;
|
||||
|
||||
playersao->setHP(playersao->accessObjectProperties()->hp_max);
|
||||
playersao->setBreath(PLAYER_MAX_BREATH);
|
||||
playersao->setBreath(playersao->accessObjectProperties()->breath_max);
|
||||
|
||||
bool repositioned = m_script->on_respawnplayer(playersao);
|
||||
if (!repositioned) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue