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:
@@ -230,7 +230,8 @@ namespace Game.Chat.Commands
|
||||
if (account.IsConnected())
|
||||
return new RBACCommandData() { rbac = account.GetConnectedSession().GetRBACData(), needDelete = false };
|
||||
|
||||
RBACData rbac = new(account.GetID(), account.GetName(), (int)Global.WorldMgr.GetRealmId().Index, (byte)Global.AccountMgr.GetSecurity(account.GetID(), (int)Global.WorldMgr.GetRealmId().Index));
|
||||
int realmId = (int)Global.RealmMgr.GetCurrentRealmId().Index;
|
||||
RBACData rbac = new(account.GetID(), account.GetName(), realmId, (byte)Global.AccountMgr.GetSecurity(account.GetID(), realmId));
|
||||
rbac.LoadFromDB();
|
||||
|
||||
return new RBACCommandData() { rbac = rbac, needDelete = true };
|
||||
|
||||
Reference in New Issue
Block a user