Skip to content

Conversation

@Waenara
Copy link

@Waenara Waenara commented Apr 14, 2025

Description

Describe the changes
Fixed UnregisterItems to avoid modifying Registered during iteration by using a copy.

What is the current behavior?
UnregisterItems logs an InvalidOperationException when TryUnregister modifies Registered.

What is the new behavior?
Iterates over a copy of Registered, preventing the error.

Does this PR introduce a breaking change?
No, no changes needed for users.

Other information:
Fixes a collection iteration error.


Types of changes

  • Bug fix
  • New feature
  • Breaking change
  • Documentations

Submission checklist

  • Project compiles
  • Tested and works

Patches

  • No IL patching errors

Other

  • Needs more testing

@Waenara Waenara changed the title Fix InvalidOperationException in UnregisterItems fix: InvalidOperationException in UnregisterItems Apr 14, 2025
@louis1706 louis1706 merged commit d715f77 into ExMod-Team:dev Apr 19, 2025
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants