Updates map packets (#319)

This commit is contained in:
Kamron Batman 2020-11-17 20:58:28 -08:00 committed by GitHub
parent 0726b4547b
commit ceb8d4ad49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 106 additions and 70 deletions

View file

@ -303,14 +303,11 @@ namespace Server.Network
{
state.SendLoginConfirmation(m);
if (m.Map != null)
{
state.Send(new MapChange(m.Map));
}
state.SendMapChange(m.Map);
if (!Core.SE && state.ProtocolChanges < ProtocolChanges.Version6000)
{
state.Send(new MapPatches());
state.SendMapPatches();
}
state.Send(SeasonChange.Instantiate(m.GetSeason(), true));
@ -392,10 +389,7 @@ namespace Server.Network
state.SendLoginComplete();
state.Send(new CurrentTime());
state.Send(SeasonChange.Instantiate(m.GetSeason(), true));
if (m.Map != null)
{
state.Send(new MapChange(m.Map));
}
state.SendMapChange(m.Map);
EventSink.InvokeLogin(m);