From 09a2f59d3a2098144a9963cecf55feb0005da57f Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 19 Jan 2021 10:51:56 -0500 Subject: [PATCH] Core/Commands: Fixes not being able to use just name for teleporting --- Source/Game/Chat/CommandHandler.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Game/Chat/CommandHandler.cs b/Source/Game/Chat/CommandHandler.cs index f1269fdd7..eb85d98d3 100644 --- a/Source/Game/Chat/CommandHandler.cs +++ b/Source/Game/Chat/CommandHandler.cs @@ -346,10 +346,10 @@ namespace Game.Chat if (string.IsNullOrEmpty(cId)) return null; - if (!uint.TryParse(cId, out uint id)) - return null; + if (uint.TryParse(cId, out uint id)) + return Global.ObjectMgr.GetGameTele(id); - return Global.ObjectMgr.GetGameTele(id); + return Global.ObjectMgr.GetGameTele(cId); } public string ExtractQuotedArg(string str)