ModernUO/Projects/UOContent/Engines/Chat
Kamron Batman a2fd2441ae
fix: Removes unnecessary dictionary removal guards
Dictionary<K,V>.Remove and HashSet<T>.Remove do not bump the collection
version, so removing during a foreach is safe and the collect-then-remove
queues guarding those loops are dead weight. This drops them, including
via the Keys and Values enumerators.

Deletion of a Mobile is left deferred: removing from World.Mobiles while
enumerating it is fine, but Delete() runs OnDelete/OnAfterDelete, the
OnParentDeleted cascade over the pack, and region and guild callbacks.
Anything in there that constructs a Mobile is an Add into the dictionary
being enumerated, which does invalidate it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-08 11:43:10 -07:00
..
Channel.cs fix: Removes unnecessary dictionary removal guards 2026-08-08 11:43:10 -07:00
Chat.cs fix(core): Converts some packets & misc fixes/cleanup (#414) 2021-01-16 21:01:54 -08:00
ChatActionHandler.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
ChatActionHandlers.cs fix(core): Updates slice with range selectors (#583) 2021-04-23 20:57:24 -07:00
ChatCommand.cs Formats UO Content (#201) 2020-08-27 18:30:38 -07:00
ChatPackets.cs fix: Bumps deps. Updates copyrights (#2353) 2026-03-05 19:36:54 -08:00
ChatUser.cs fix(core): Converts some packets & misc fixes/cleanup (#414) 2021-01-16 21:01:54 -08:00