1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Send Breath packet on event, don't check it at each AsyncRunStep

This commit is contained in:
Loic Blot
2015-03-03 16:23:47 +01:00
parent 64ff966bae
commit 7e56637ed0
6 changed files with 16 additions and 16 deletions

View File

@@ -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)