Skip to content

Conversation

@hero3806
Copy link
Contributor

This can be useful when you need to make changes with a slot when it's added or removed

This change is to increase user accessibility with the API & make changes with the slot as they desire that is added/removed.

@hero3806 hero3806 force-pushed the main branch 2 times, most recently from 846c052 to 0e871f5 Compare November 30, 2025 12:55
@ryanlua ryanlua added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels Nov 30, 2025
@ryanlua ryanlua requested a review from Copilot December 2, 2025 19:39
@ryanlua ryanlua self-assigned this Dec 2, 2025
@ryanlua ryanlua added this to the v1.4.2 milestone Dec 2, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR modifies the BackpackItemAdded and BackpackItemRemoved events to pass the slot object as a parameter to event listeners, enabling consumers to access and manipulate the slot when items are added or removed from the backpack.

Key Changes:

  • Updated BackpackItemAdded:Fire() to pass the slot object as a parameter
  • Updated BackpackItemRemoved:Fire() to pass the slot object as a parameter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hero3806 hero3806 closed this Dec 5, 2025
@hero3806 hero3806 reopened this Dec 5, 2025
@ryanlua ryanlua merged commit e4b8dcb into ryanlua:main Dec 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants