Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if item has been removed before firing OnItemMoved events #3925

Merged
merged 1 commit into from
Feb 6, 2022

Conversation

Erza
Copy link
Contributor

@Erza Erza commented Feb 6, 2022

Pull Request Prelude

Changes Proposed

Followup to #3918
This fixes an edge case when an item would be removed just before the onItemMoved event would execute, e.g. when throwing an item into a trash holder (water, lava, dustbin etc). The pointer would still be valid but the item would be flagged for removal.

Issues addressed:

@EPuncker EPuncker requested review from a team February 6, 2022 14:49
@EPuncker EPuncker merged commit e991b15 into otland:master Feb 6, 2022
@Erza Erza deleted the check-removed-state branch February 7, 2022 13:10
Znote pushed a commit to Znote/forgottenserver that referenced this pull request Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants