BungeeCord compatibility: don't overwrite UUID / properties.
This commit is contained in:
parent
82317709f8
commit
010879e43f
@ -312,8 +312,16 @@ void cClientHandle::Authenticate(const AString & a_Name, const AString & a_UUID,
|
|||||||
ASSERT(m_Player == NULL);
|
ASSERT(m_Player == NULL);
|
||||||
|
|
||||||
m_Username = a_Name;
|
m_Username = a_Name;
|
||||||
|
|
||||||
|
// Only assign UUID and properties if not already pre-assigned (BungeeCord sends those in the Handshake packet):
|
||||||
|
if (m_UUID.empty())
|
||||||
|
{
|
||||||
m_UUID = a_UUID;
|
m_UUID = a_UUID;
|
||||||
|
}
|
||||||
|
if (m_Properties.empty())
|
||||||
|
{
|
||||||
m_Properties = a_Properties;
|
m_Properties = a_Properties;
|
||||||
|
}
|
||||||
|
|
||||||
// Send login success (if the protocol supports it):
|
// Send login success (if the protocol supports it):
|
||||||
m_Protocol->SendLoginSuccess();
|
m_Protocol->SendLoginSuccess();
|
||||||
|
Loading…
Reference in New Issue
Block a user