forked from Mirrorlandia_minetest/minetest
Prevent early respawns caused by up/down button in the death screen (#13870)
This commit is contained in:
parent
b270c2bd68
commit
7e678b5686
@ -177,8 +177,11 @@ struct LocalFormspecHandler : public TextDest
|
||||
}
|
||||
|
||||
if (m_formname == "MT_DEATH_SCREEN") {
|
||||
assert(m_client != 0);
|
||||
m_client->sendRespawn();
|
||||
assert(m_client != nullptr);
|
||||
|
||||
if (fields.find("quit") != fields.end())
|
||||
m_client->sendRespawn();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user