mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Fix multiple death messages (#5305)
Fix multiple death messages (#3565) and damage server logs after death.
This commit is contained in:
@@ -1111,16 +1111,15 @@ PlayerSAO* Server::StageTwoClientInit(u16 peer_id)
|
||||
// Send inventory
|
||||
SendInventory(playersao);
|
||||
|
||||
// Send HP
|
||||
SendPlayerHPOrDie(playersao);
|
||||
// Send HP or death screen
|
||||
if (playersao->isDead())
|
||||
SendDeathscreen(peer_id, false, v3f(0,0,0));
|
||||
else
|
||||
SendPlayerHPOrDie(playersao);
|
||||
|
||||
// Send Breath
|
||||
SendPlayerBreath(playersao);
|
||||
|
||||
// Show death screen if necessary
|
||||
if (playersao->isDead())
|
||||
SendDeathscreen(peer_id, false, v3f(0,0,0));
|
||||
|
||||
// Note things in chat if not in simple singleplayer mode
|
||||
if (!m_simple_singleplayer_mode && g_settings->getBool("show_statusline_on_connect")) {
|
||||
// Send information about server to player in chat
|
||||
|
Reference in New Issue
Block a user