Skip to content

Commit

Permalink
protocol/player.go: Fix documentation. (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqdetdev committed Sep 13, 2022
1 parent b1dfb04 commit 11dcfd6
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 11dcfd6

Please sign in to comment.