From aaad909c89dec0b04eb60b4e47473e94bc20108e Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Sat, 30 Dec 2023 09:47:21 -0800 Subject: [PATCH] fix: Fixes GetItemsAt, GetMobilesAt, and GetClientsAt (#1653) --- Projects/Server/Maps/Map.ClientEnumerator.cs | 2 +- Projects/Server/Maps/Map.ItemEnumerator.cs | 2 +- Projects/Server/Maps/Map.MobileEnumerator.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Projects/Server/Maps/Map.ClientEnumerator.cs b/Projects/Server/Maps/Map.ClientEnumerator.cs index 00798e1cf..82efbb07b 100644 --- a/Projects/Server/Maps/Map.ClientEnumerator.cs +++ b/Projects/Server/Maps/Map.ClientEnumerator.cs @@ -87,7 +87,7 @@ public partial class Map { _started = false; _location = loc; - _linkList = ref map.GetRealSector(loc.m_X, loc.m_Y).Clients; + _linkList = ref map.GetSector(loc.m_X, loc.m_Y).Clients; _version = 0; _current = null; } diff --git a/Projects/Server/Maps/Map.ItemEnumerator.cs b/Projects/Server/Maps/Map.ItemEnumerator.cs index 170559b98..7fec42b7e 100644 --- a/Projects/Server/Maps/Map.ItemEnumerator.cs +++ b/Projects/Server/Maps/Map.ItemEnumerator.cs @@ -119,7 +119,7 @@ public partial class Map } else { - _linkList = ref map.GetRealSector(loc.m_X, loc.m_Y).Items; + _linkList = ref map.GetSector(loc.m_X, loc.m_Y).Items; } _version = 0; diff --git a/Projects/Server/Maps/Map.MobileEnumerator.cs b/Projects/Server/Maps/Map.MobileEnumerator.cs index 05557629f..bced5e1a7 100644 --- a/Projects/Server/Maps/Map.MobileEnumerator.cs +++ b/Projects/Server/Maps/Map.MobileEnumerator.cs @@ -119,7 +119,7 @@ public partial class Map } else { - _linkList = ref map.GetRealSector(loc.m_X, loc.m_Y).Mobiles; + _linkList = ref map.GetSector(loc.m_X, loc.m_Y).Mobiles; } _version = 0; _current = null;