-
Notifications
You must be signed in to change notification settings - Fork 117
Protocol: Fix some packets #331
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
Open
Happy2018new
wants to merge
15
commits into
Sandertv:master
Choose a base branch
from
Happy2018new:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
packet.UpdateSubChunkBlocks
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
…ntity` Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
…ionType` Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
All right, and ready for review. |
Most changes are come from @CoozillaX, and I just compare these changes with documents which wrote by Mojang. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request fix so many packets (the data type for some fields), and the following is the reference list.
See UpdateSubChunkBlocks, and you can find that the data type for
Position
isprotocol.BlockPos
which encoding byio.UBlockPos
.See PlayerAuthInput and PackedItemUseLegacyInventoryTransaction, and you can find that the correct marshal for field
BlockPosition
isio.UBlockPos
.See AddVolumeEntity, RemoveVolumeEntity and EntityNetId, and you can find that the data type for
EntityRuntimeID
isuint32
whcih encoding byio.Varuint32
.See AgentActionEvent and int, and you can find that the data type for
Action
isint32
which encoding byio.Int32
.See ChangeMobProperty and ActorUniqueID, and you can find that the data type for
EntityUniqueID
isint64
which encoding byio.Varint64
.See CommandBlockUpdate, and you can find that the data type for
TickDelay
isuint32 (unsigned int)
which encoding byio.Uint32
.See LessonProgress, and you can find that the data type for
Action
isint32
which encoding byio.Varint32
.See OnScreenTextureAnimation, and you can find that the data type for
AnimationType
isuint32 (unsigned int)
which encoding byio.Uint32
.See RequestChunkRadius, and you can find that the data type for
MaxChunkRadius
isbyte
which encoding byio.Uint8
.See RequestPermissions, and you can find that the data type for
PermissionLevel
isint32
which encoding byio.Varint32
.See SimpleEvent, and you can find that the data type for
EventType
isuint16 (unsigned short)
which encoding byio.Uint16
.See StartGame which path is
StartGamePacket/Settings (LevelSettings)
and LevelSettings which path isLevelSettings/override force experimental gameplay has value
, and you can find that the data type forForceExperimentalGameplay
isbool
which encoding byio.Bool
.