Skip to content

Fix ChangingRoleAndSpawned#282

Merged
VALERA771 merged 2 commits intoExMod-Team:scpsl14from
Misaka-SL-Project:changingroleandspawned
Dec 1, 2024
Merged

Fix ChangingRoleAndSpawned#282
VALERA771 merged 2 commits intoExMod-Team:scpsl14from
Misaka-SL-Project:changingroleandspawned

Conversation

@Misaka-ZeroTwo
Copy link
Copy Markdown
Collaborator

@Misaka-ZeroTwo Misaka-ZeroTwo commented Dec 1, 2024

Description

Describe the changes
The eventargs for ChangingRole could be null sometimes (if player not verified), which breaks ChangeInventory method.

What is the current behavior? (You can also link to an open issue here)

What is the new behavior? (if this is a feature change)

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Other information:


Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentations

Submission checklist

  • I have checked the project can be compiled
  • I have tested my changes and it worked as expected

Patches (if there are any changes related to Harmony patches)

  • I have checked no IL patching errors in the console

Other

  • Still requires more testing

Copy link
Copy Markdown
Member

@IRacle1 IRacle1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id prefer add checks in patch, but anyway

@VALERA771 VALERA771 merged commit 5fadf62 into ExMod-Team:scpsl14 Dec 1, 2024
kijetesantakalu912345 added a commit to kijetesantakalu912345/SLCryptoAuth that referenced this pull request Nov 2, 2025
the unrelated bug in question is exiled erroring before setting the inventory when spawning. im not sure why or how SLCryptoAuth is triggering this exiled bug but it's occurring anyway so it looks like i'll have to separately fork exiled and bring bug fixes from future versions to old versions. the fix is literally just this PR, but it was made way after exiled 8.12.2 ExMod-Team/EXILED#282
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment