Fixed Server starting.

This commit is contained in:
Hondacrx
2025-06-09 00:04:23 -04:00
parent 4214100d93
commit 59b507e93d
16 changed files with 105 additions and 98 deletions
@@ -201,10 +201,10 @@ namespace Game.Movement
{
uint path, cost;
Global.ObjectMgr.GetTaxiPath(taxi[src], taxi[dst], out path, out cost);
if (path >= CliDB.TaxiPathNodesByPath.Keys.Max())
if (path >= DB2Manager.TaxiPathNodesByPath.Keys.Max())
return;
var nodes = CliDB.TaxiPathNodesByPath[path];
var nodes = DB2Manager.TaxiPathNodesByPath[path];
if (!nodes.Empty())
{
TaxiPathNodeRecord start = nodes[0];
+1 -1
View File
@@ -1015,7 +1015,7 @@ namespace Game.Movement
{
if (_owner.IsTypeId(TypeId.Player))
{
if (path < CliDB.TaxiPathNodesByPath.Count)
if (path < DB2Manager.TaxiPathNodesByPath.Count)
{
Log.outDebug(LogFilter.Server, $"MotionMaster::MoveTaxiFlight: {_owner.GetGUID()} taxi to Path Id: {path} (node {pathnode})");