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

remap u32 to varint in protocol.json #457

Merged
merged 4 commits into from
Aug 16, 2021
Merged

Conversation

kvoli
Copy link
Contributor

@kvoli kvoli commented Aug 15, 2021

#456

remove u32 and replace with varint, per every other protocol version.

@nickelpro
Copy link
Member

Needs to be double checked with Burger that these snapshots actually don't use u32 here

@rom1504
Copy link
Member

rom1504 commented Aug 15, 2021

I don't think this is correct

just add u32 as a native

@kvoli
Copy link
Contributor Author

kvoli commented Aug 15, 2021

So all the versions before and after which are varint for that packet, are wrong?

@nickelpro
Copy link
Member

No, likely it only changed for these versions

@rom1504
Copy link
Member

rom1504 commented Aug 15, 2021

So all the versions before and after which are varint for that packet, are wrong?

looks like this packet was created in the versions in this PR. Can you find any previous version that contains this packet ?

@rom1504 rom1504 added this to Needs triage in PR Triage Aug 15, 2021
@nickelpro
Copy link
Member

Looking at the decompile for 17w18a, this was an i32. The correct answer is to just switch to i32 which will fix the issue

@kvoli
Copy link
Contributor Author

kvoli commented Aug 16, 2021

Updated with i32 @nickelpro @rom1504

Copy link
Member

@nickelpro nickelpro left a comment

Choose a reason for hiding this comment

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

LGTM, should be squashed+rebased not merged

@rom1504 rom1504 merged commit 747d4b7 into PrismarineJS:master Aug 16, 2021
PR Triage automation moved this from Needs triage to Closed Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
PR Triage
  
Closed
Development

Successfully merging this pull request may close these issues.

None yet

3 participants