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

Set ItemManager index to correct value after ReceivedItems #193

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

CodeTriangle
Copy link

I noticed in the CrossCode APWorld that every time an item was received, my client would send a Sync Packet and the server would, naturally, respond with a ReceivedItems packet with index=0. This turned out to be an oversight in ItemsManager.#onReceivedItems in which the program would fail to update #index to the new value, therefore keeping #index constantly at zero, and creating some unnecessary network bandwidth. This PR adds a whopping one line of code that should fix this issue.

@ThePhar
Copy link
Owner

ThePhar commented Nov 3, 2024

This is likely no longer necessary with the v2 rewrite that I just posted today, but I may publish a 1.2 release just to patch some of these old bugs, so I'll keep this PR open for a bit to come back to.

@CodeTriangle
Copy link
Author

I submitted these PRs with that intention, yes.

@ThePhar ThePhar changed the base branch from main to legacy November 4, 2024 12:45
@ThePhar ThePhar changed the title set ItemManager index to correct value after ReceivedItems Set ItemManager index to correct value after ReceivedItems Nov 4, 2024
@ThePhar ThePhar added the is: bug Something isn't working label Nov 4, 2024
@ThePhar ThePhar added this to the 1.2 Legacy Release milestone Nov 4, 2024
@ThePhar ThePhar self-assigned this Nov 4, 2024
@ThePhar ThePhar merged commit fe0e98f into ThePhar:legacy Nov 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: legacy Targetting [email protected] is: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants