Core/Players: Relocate players to their homebind location instead of starting zone when login at saved location fails

Port From (https://github.com/TrinityCore/TrinityCore/commit/46004d4fcae6e00befd7d4bfacc0ffbf748edee4)
This commit is contained in:
hondacrx
2021-10-02 20:21:22 -04:00
parent dc6545a652
commit d5acfbc38b
+1 -8
View File
@@ -2987,18 +2987,11 @@ namespace Game.Entities
map = Global.MapMgr.CreateMap(mapId, this);
}
}
else
{
Log.outError(LogFilter.Player, "Player {0} {1} Map: {2}, {3}. Areatrigger not found.", GetName(), guid.ToString(), mapId, GetPosition());
RelocateToHomebind();
map = null;
}
}
if (!map)
{
mapId = info.MapId;
Relocate(info.PositionX, info.PositionY, info.PositionZ, 0.0f);
RelocateToHomebind();
map = Global.MapMgr.CreateMap(mapId, this);
if (!map)
{