fix(Core/Character): TeleportTo() in HandlePlayerLoginFromDB() causes… (#19237)
fix(Core/Character): TeleportTo() in HandlePlayerLoginFromDB() causes breakdown in the network communication * closes https://github.com/azerothcore/azerothcore-wotlk/issues/16307
This commit is contained in:
@@ -893,6 +893,9 @@ void WorldSession::HandlePlayerLoginFromDB(LoginQueryHolder const& holder)
|
|||||||
pCurrChar->TeleportTo(at->target_mapId, at->target_X, at->target_Y, at->target_Z, pCurrChar->GetOrientation());
|
pCurrChar->TeleportTo(at->target_mapId, at->target_X, at->target_Y, at->target_Z, pCurrChar->GetOrientation());
|
||||||
else
|
else
|
||||||
pCurrChar->TeleportTo(pCurrChar->m_homebindMapId, pCurrChar->m_homebindX, pCurrChar->m_homebindY, pCurrChar->m_homebindZ, pCurrChar->GetOrientation());
|
pCurrChar->TeleportTo(pCurrChar->m_homebindMapId, pCurrChar->m_homebindX, pCurrChar->m_homebindY, pCurrChar->m_homebindZ, pCurrChar->GetOrientation());
|
||||||
|
|
||||||
|
// Probably a hackfix, but currently the best workaround to prevent character names showing as Unknown after teleport out from instances at login.
|
||||||
|
pCurrChar->GetSession()->SendNameQueryOpcode(pCurrChar->GetGUID());
|
||||||
}
|
}
|
||||||
|
|
||||||
pCurrChar->SendInitialPacketsAfterAddToMap();
|
pCurrChar->SendInitialPacketsAfterAddToMap();
|
||||||
|
|||||||
Reference in New Issue
Block a user