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

protocol/player.go: Fix documentation #152

Merged
merged 1 commit into from Sep 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions minecraft/protocol/player.go
Expand Up @@ -96,18 +96,18 @@ func PlayerListRemoveEntry(r IO, x *PlayerListEntry) {
// the client will provide input to the server.
type PlayerMovementSettings struct {
// MovementType specifies the way the server handles player movement. Available options are
// packet.AuthoritativeMovementModeClient, packet.AuthoritativeMovementModeServer and
// packet.AuthoritativeMovementModeServerWithRewind, where the server authoritative types result
// protocol.PlayerMovementModeClient, protocol.PlayerMovementModeServer and
// protocol.PlayerMovementModeServerWithRewind, where the server authoritative types result
// in the client sending PlayerAuthInput packets instead of MovePlayer packets and the rewind mode
// requires sending the tick of movement and several actions.
MovementType int32
// RewindHistorySize is the amount of history to keep at maximum if MovementType is
// packet.AuthoritativeMovementModeServerWithRewind.
// protocol.PlayerMovementModeServerWithRewind.
RewindHistorySize int32
// ServerAuthoritativeBlockBreaking specifies if block breaking should be sent through
// packet.PlayerAuthInput or not. This field is somewhat redundant as it is always enabled if
// MovementType is packet.AuthoritativeMovementModeServer or
// packet.AuthoritativeMovementModeServerWithRewind
// protocol.PlayerMovementModeServerWithRewind
ServerAuthoritativeBlockBreaking bool
}

Expand Down