diff --git a/Projects/Server/Items/Item.cs b/Projects/Server/Items/Item.cs index 90e6e4161..5d928c2d4 100644 --- a/Projects/Server/Items/Item.cs +++ b/Projects/Server/Items/Item.cs @@ -2469,7 +2469,7 @@ public class Item : IHued, IComparable, ISpawnable, IObjectPropertyListEnt var map = m_Map; return map == null - ? Map.NullEnumerable.Instance + ? PooledEnumeration.NullEnumerable.Instance : map.GetObjectsInRange(m_Parent == null ? m_Location : GetWorldLocation(), range); } @@ -2478,7 +2478,7 @@ public class Item : IHued, IComparable, ISpawnable, IObjectPropertyListEnt var map = m_Map; return map?.GetItemsInRange(m_Parent == null ? m_Location : GetWorldLocation(), range) - ?? Map.NullEnumerable.Instance; + ?? PooledEnumeration.NullEnumerable.Instance; } public IPooledEnumerable GetMobilesInRange(int range) @@ -2486,7 +2486,7 @@ public class Item : IHued, IComparable, ISpawnable, IObjectPropertyListEnt var map = m_Map; return map?.GetMobilesInRange(m_Parent == null ? m_Location : GetWorldLocation(), range) - ?? Map.NullEnumerable.Instance; + ?? PooledEnumeration.NullEnumerable.Instance; } public IPooledEnumerable GetClientsInRange(int range) @@ -2494,7 +2494,7 @@ public class Item : IHued, IComparable, ISpawnable, IObjectPropertyListEnt var map = m_Map; return map.GetClientsInRange(m_Parent == null ? m_Location : GetWorldLocation(), range) - ?? Map.NullEnumerable.Instance; + ?? PooledEnumeration.NullEnumerable.Instance; } public bool GetTempFlag(int flag) => ((LookupCompactInfo()?.m_TempFlags ?? 0) & flag) != 0; diff --git a/Projects/Server/Mobiles/Mobile.cs b/Projects/Server/Mobiles/Mobile.cs index 2f5700e04..5bc962481 100644 --- a/Projects/Server/Mobiles/Mobile.cs +++ b/Projects/Server/Mobiles/Mobile.cs @@ -8067,18 +8067,18 @@ public partial class Mobile : IHued, IComparable, ISpawnable, IObjectPro public IPooledEnumerable GetItemsInRange(int range) => GetItemsInRange(range); public IPooledEnumerable GetItemsInRange(int range) where T : Item => - m_Map?.GetItemsInRange(m_Location, range) ?? Map.NullEnumerable.Instance; + m_Map?.GetItemsInRange(m_Location, range) ?? PooledEnumeration.NullEnumerable.Instance; public IPooledEnumerable GetObjectsInRange(int range) => - m_Map?.GetObjectsInRange(m_Location, range) ?? Map.NullEnumerable.Instance; + m_Map?.GetObjectsInRange(m_Location, range) ?? PooledEnumeration.NullEnumerable.Instance; public IPooledEnumerable GetMobilesInRange(int range) => GetMobilesInRange(range); public IPooledEnumerable GetMobilesInRange(int range) where T : Mobile => - m_Map?.GetMobilesInRange(m_Location, range) ?? Map.NullEnumerable.Instance; + m_Map?.GetMobilesInRange(m_Location, range) ?? PooledEnumeration.NullEnumerable.Instance; public IPooledEnumerable GetClientsInRange(int range) => - m_Map?.GetClientsInRange(m_Location, range) ?? Map.NullEnumerable.Instance; + m_Map?.GetClientsInRange(m_Location, range) ?? PooledEnumeration.NullEnumerable.Instance; public void SayTo(Mobile to, bool ascii, string text) => PrivateOverheadMessage(MessageType.Regular, SpeechHue, ascii, text, to.NetState); diff --git a/Projects/Server/TileMatrix/TileMatrix.cs b/Projects/Server/TileMatrix/TileMatrix.cs index f5036e8b1..e6d4c1e15 100644 --- a/Projects/Server/TileMatrix/TileMatrix.cs +++ b/Projects/Server/TileMatrix/TileMatrix.cs @@ -244,7 +244,7 @@ public class TileMatrix { var eable = _map.GetMultiTilesAt(x, y); - if (eable == Map.NullEnumerable.Instance) + if (eable == PooledEnumeration.NullEnumerable.Instance) { return tiles[x & 0x7][y & 0x7]; } diff --git a/Projects/UOContent.Tests/Tests/Multis/Boats/BoatPacketTests.cs b/Projects/UOContent.Tests/Tests/Multis/Boats/BoatPacketTests.cs index 0e756a657..f33234a1b 100644 --- a/Projects/UOContent.Tests/Tests/Multis/Boats/BoatPacketTests.cs +++ b/Projects/UOContent.Tests/Tests/Multis/Boats/BoatPacketTests.cs @@ -118,7 +118,7 @@ public class BoatPacketTests : IClassFixture public override bool Contains(int x, int y) => !_notContainedList.Any(e => e.X == x && e.Y == y); public override MovingEntitiesEnumerable GetMovingEntities(bool includeBoat = false) => - new(this, true, new Map.PooledEnumerable(_list)); + new(this, true, new PooledEnumeration.PooledEnumerable(_list)); } private class MockedMobile : Mobile