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

Refactor packets #59

Merged
merged 7 commits into from
Jan 27, 2025
Merged

Refactor packets #59

merged 7 commits into from
Jan 27, 2025

Conversation

Lyfts
Copy link
Member

@Lyfts Lyfts commented Jan 26, 2025

Uses GTNHLib's SyncedKeybind which enables us to remove the two packets that were previously used for swapping items to/from the offhand and the 2 remaining packets have been refactored to standard IMessages.

Hopefully fixes https://discord.com/channels/181078474394566657/603348502637969419/1333064415083364356 by implementing some stricter checks to ensure that items from fake players aren't synced. I don't know for sure if this fixes it since I can't reproduce, but that packet is only used to sync the items other players are holding in their offhand and it wouldn't ordinarily be sent in SP.

@Lyfts Lyfts requested a review from a team January 26, 2025 15:27
@serenibyss serenibyss merged commit 3eecde0 into master Jan 27, 2025
1 check passed
@serenibyss serenibyss deleted the packet-refactor branch January 27, 2025 01:38
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