fix: Fixes multi search (#1601)

This commit is contained in:
Kamron Batman 2023-11-18 12:37:26 -08:00 • committed by GitHub
parent b5c984e5de
commit 021ebd0a88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 87 additions and 35 deletions

View file

@ -6943,6 +6943,16 @@ public partial class Mobile : IHued, IComparable<Mobile>, ISpawnable, IObjectPro
item.SendInfoTo(ns);
}
}
var range = new Rectangle2D(m_Location.X - Core.GlobalMaxUpdateRange,
m_Location.Y - Core.GlobalMaxUpdateRange,
Core.GlobalMaxUpdateRange * 2 + 1,
Core.GlobalMaxUpdateRange * 2 + 1);
foreach (var multi in m_Map.GetMultisInBounds(range))
{
multi.SendInfoTo(ns);
}
}
public void UpdateRegion()