mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Send Breath packet on event, don't check it at each AsyncRunStep
This commit is contained in:
parent
64ff966bae
commit
7e56637ed0
6 changed files with 16 additions and 16 deletions
|
@ -922,7 +922,7 @@ void Server::handleCommand_Breath(NetworkPacket* pkt)
|
|||
}
|
||||
|
||||
playersao->setBreath(breath);
|
||||
m_script->player_event(playersao,"breath_changed");
|
||||
SendPlayerBreath(pkt->getPeerId());
|
||||
}
|
||||
|
||||
void Server::handleCommand_Password(NetworkPacket* pkt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue