mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Don't call on_dieplayer callback two times (#11874)
This commit is contained in:
parent
76e97e85a0
commit
72b14bd994
5 changed files with 41 additions and 60 deletions
|
@ -350,7 +350,8 @@ public:
|
|||
|
||||
void printToConsoleOnly(const std::string &text);
|
||||
|
||||
void SendPlayerHPOrDie(PlayerSAO *player, const PlayerHPChangeReason &reason);
|
||||
void HandlePlayerHPChange(PlayerSAO *sao, const PlayerHPChangeReason &reason);
|
||||
void SendPlayerHP(PlayerSAO *sao);
|
||||
void SendPlayerBreath(PlayerSAO *sao);
|
||||
void SendInventory(PlayerSAO *playerSAO, bool incremental);
|
||||
void SendMovePlayer(session_t peer_id);
|
||||
|
@ -438,7 +439,6 @@ private:
|
|||
|
||||
virtual void SendChatMessage(session_t peer_id, const ChatMessage &message);
|
||||
void SendTimeOfDay(session_t peer_id, u16 time, f32 time_speed);
|
||||
void SendPlayerHP(session_t peer_id);
|
||||
|
||||
void SendLocalPlayerAnimations(session_t peer_id, v2s32 animation_frames[4],
|
||||
f32 animation_speed);
|
||||
|
@ -510,7 +510,7 @@ private:
|
|||
Something random
|
||||
*/
|
||||
|
||||
void DiePlayer(session_t peer_id, const PlayerHPChangeReason &reason);
|
||||
void HandlePlayerDeath(PlayerSAO* sao, const PlayerHPChangeReason &reason);
|
||||
void RespawnPlayer(session_t peer_id);
|
||||
void DeleteClient(session_t peer_id, ClientDeletionReason reason);
|
||||
void UpdateCrafting(RemotePlayer *player);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue