mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +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 commit45994a177c) (cherry picked from commitc7bad70e55) Conflicts: src/server/game/Entities/Player/Player.cpp src/server/game/Entities/Player/Player.h
This commit is contained in:
@@ -969,7 +969,7 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder)
|
||||
}
|
||||
}
|
||||
|
||||
if (!pCurrChar->GetMap()->AddPlayerToMap(pCurrChar) || !pCurrChar->CheckInstanceLoginValid())
|
||||
if (!pCurrChar->GetMap()->AddPlayerToMap(pCurrChar))
|
||||
{
|
||||
AreaTriggerStruct const* at = sObjectMgr->GetGoBackTrigger(pCurrChar->GetMapId());
|
||||
if (at)
|
||||
|
||||
Reference in New Issue
Block a user