mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Don't call on_dieplayer callback two times (#11874)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user