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:
@@ -24,7 +24,11 @@ public class PacketLog
|
||||
writer.Write(Encoding.ASCII.GetBytes("PKT"));
|
||||
writer.Write((ushort)769);
|
||||
writer.Write(Encoding.ASCII.GetBytes("T"));
|
||||
writer.Write(Global.WorldMgr.GetRealm().Build);
|
||||
var currentRealm = Global.RealmMgr.GetCurrentRealm();
|
||||
if (currentRealm != null)
|
||||
writer.Write(currentRealm.Build);
|
||||
else
|
||||
writer.Write(0);
|
||||
writer.Write(Encoding.ASCII.GetBytes("enUS"));
|
||||
writer.Write(new byte[40]);//SessionKey
|
||||
writer.Write((uint)GameTime.GetGameTime());
|
||||
|
||||
Reference in New Issue
Block a user