From d5acfbc38b0eeb341a88e608dcc8115040784eb0 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sat, 2 Oct 2021 20:21:22 -0400 Subject: [PATCH] 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) --- Source/Game/Entities/Player/Player.DB.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Source/Game/Entities/Player/Player.DB.cs b/Source/Game/Entities/Player/Player.DB.cs index 8e111cc29..3476c6adf 100644 --- a/Source/Game/Entities/Player/Player.DB.cs +++ b/Source/Game/Entities/Player/Player.DB.cs @@ -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) {