fix(core): Converts mobile moving packet (#357)
- [X] Converts mobile moving packet
This commit is contained in:
parent
c2143584bc
commit
10a6e17640
9 changed files with 147 additions and 170 deletions
|
|
@ -1438,6 +1438,7 @@ namespace Server
|
|||
return string.Join(lineSeparator, parts);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Tidy<T>(this List<T> list) where T : ISerializable
|
||||
{
|
||||
for (int i = list.Count - 1; i >= 0; i--)
|
||||
|
|
@ -1452,6 +1453,7 @@ namespace Server
|
|||
list.TrimExcess();
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void Tidy<T>(this HashSet<T> set) where T : ISerializable
|
||||
{
|
||||
set.RemoveWhere(entry => entry?.Deleted != false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue