mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/Players: Check if player can enter the instance during login before trying to add him to map
* Fixes name displaying as "Unknown"
(cherry picked from commit 45994a177c)
This commit is contained in:
@@ -887,7 +887,7 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder)
|
||||
}
|
||||
}
|
||||
|
||||
if (!pCurrChar->GetMap()->AddPlayerToMap(pCurrChar) || !pCurrChar->CheckInstanceLoginValid())
|
||||
if (!pCurrChar->GetMap()->AddPlayerToMap(pCurrChar))
|
||||
{
|
||||
AreaTrigger const* at = sObjectMgr->GetGoBackTrigger(pCurrChar->GetMapId());
|
||||
if (at)
|
||||
|
||||
Reference in New Issue
Block a user