fix: Fixes GetInRange to use GetAt instead (#1768)
This commit is contained in:
parent
fb8563aa60
commit
aec75d0810
3 changed files with 3 additions and 4 deletions
|
|
@ -3549,7 +3549,7 @@ public class Item : IHued, IComparable<Item>, ISpawnable, IObjectPropertyListEnt
|
|||
}
|
||||
|
||||
using var items = PooledRefList<Item>.Create();
|
||||
foreach (var item in map.GetItemsInRange(p, 0))
|
||||
foreach (var item in map.GetItemsAt(p))
|
||||
{
|
||||
if (item is BaseMulti || item.ItemID > TileData.MaxItemValue)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -290,8 +290,7 @@ public sealed partial class Map : IComparable<Map>, ISpanFormattable, ISpanParsa
|
|||
return;
|
||||
}
|
||||
|
||||
var p = new Point3D(x, y, 0);
|
||||
foreach (var item in map.GetItemsInRange(p, 0))
|
||||
foreach (var item in map.GetItemsAt(x, y))
|
||||
{
|
||||
if (item is not BaseMulti && item.ItemID <= TileData.MaxItemValue)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ namespace Server.Commands
|
|||
public static void Add_Static(int itemID, Point3D location, Map map, string name)
|
||||
{
|
||||
using var queue = PooledRefQueue<Item>.Create();
|
||||
foreach (var item in map.GetItemsInRange(location, 0))
|
||||
foreach (var item in map.GetItemsAt(location))
|
||||
{
|
||||
if (item is Sign && item.Z == location.Z && item.ItemID == itemID)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue