Core/Realms: Realmlist refactors
* Removed global realm variable from World and use RealmList everywhere * Match auth build key with client version * Restored allowedSecurityLevel checks for realmlist packet building * Restored updating population field Port From (https://github.com/TrinityCore/TrinityCore/commit/c4b710446d62c95eb8124175203fa5f394912594)
This commit is contained in:
@@ -270,7 +270,7 @@ namespace Game
|
||||
}
|
||||
|
||||
// When not found, consult database
|
||||
GetQueryProcessor().AddCallback(Global.AccountMgr.GetSecurityAsync(friendCharacterInfo.AccountId, (int)Global.WorldMgr.GetRealmId().Index, friendSecurity =>
|
||||
GetQueryProcessor().AddCallback(Global.AccountMgr.GetSecurityAsync(friendCharacterInfo.AccountId, (int)Global.RealmMgr.GetCurrentRealmId().Index, friendSecurity =>
|
||||
{
|
||||
if (!Global.AccountMgr.IsPlayerAccount((AccountTypes)friendSecurity))
|
||||
{
|
||||
@@ -280,16 +280,6 @@ namespace Game
|
||||
|
||||
processFriendRequest();
|
||||
}));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
[WorldPacketHandler(ClientOpcodes.DelFriend)]
|
||||
|
||||
Reference in New Issue
Block a user