diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-03-03 16:23:47 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-03-03 16:33:20 +0100 |
commit | 7e56637ed07d9f32b4bd9049009cf7e1e4cff884 (patch) | |
tree | f683ef8fbbd078bee6c8465850e20d580225952a /src/network | |
parent | 64ff966bae99813229dff6629fd9131a91ba7484 (diff) | |
download | minetest-7e56637ed07d9f32b4bd9049009cf7e1e4cff884.tar.gz minetest-7e56637ed07d9f32b4bd9049009cf7e1e4cff884.tar.bz2 minetest-7e56637ed07d9f32b4bd9049009cf7e1e4cff884.zip |
Send Breath packet on event, don't check it at each AsyncRunStep
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/packethandlers/server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/packethandlers/server.cpp b/src/network/packethandlers/server.cpp index d9ba8c314..2deede0ca 100644 --- a/src/network/packethandlers/server.cpp +++ b/src/network/packethandlers/server.cpp @@ -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) |