1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Prevent early respawns caused by up/down button in the death screen (#13870)

This commit is contained in:
Muhammad Rifqi Priyo Susanto
2023-10-09 22:13:33 +07:00
committed by GitHub
parent b270c2bd68
commit 7e678b5686

View File

@@ -177,8 +177,11 @@ struct LocalFormspecHandler : public TextDest
}
if (m_formname == "MT_DEATH_SCREEN") {
assert(m_client != 0);
assert(m_client != nullptr);
if (fields.find("quit") != fields.end())
m_client->sendRespawn();
return;
}