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

fix: Update container state for ItemRequirement on same tick #1957

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

Zoinkwiz
Copy link
Owner

This might fix an issue where an inventory change occurs on the same tick as the check occurs.

My theory is that the item added event occurs after the inventory check for an ItemRequirement on the same tick.

This has been observed to occur for receiving items in Throne of Miscellania, and for At First Light. Ideally we can test those.

This might fix an issue where an inventory change occurs on the same tick as the check occurs.

My theory is that the item added event occurs after the inventory check for an ItemRequirement on the same tick.
Copy link
Collaborator

@pajlada pajlada left a comment

Choose a reason for hiding this comment

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

I tested this patch while doing At First Light and did not run into any desync issues

@Zoinkwiz Zoinkwiz merged commit b2d5c64 into master Jan 31, 2025
2 checks passed
@Zoinkwiz Zoinkwiz deleted the check-container-on-same-tick-change branch January 31, 2025 09:50
PsycloneTM pushed a commit to PsycloneTM/quest-helper that referenced this pull request Feb 3, 2025
…z#1957)

This might fix an issue where an inventory change occurs on the same tick as the check occurs.

My theory is that the item added event occurs after the inventory check for an ItemRequirement on the same tick.
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.

2 participants