Skip to content

Commit

Permalink
protocol/inventory.go: ClientPrediction is a Varuint32
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistedAsylumMC committed Aug 14, 2024
1 parent cdf135d commit 324cf6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minecraft/protocol/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ type UseItemTransactionData struct {
BlockRuntimeID uint32
// ClientPrediction is the client's prediction on the output of the transaction. It is one of the client
// prediction found in the constants above.
ClientPrediction byte
ClientPrediction uint32
}

const (
Expand Down Expand Up @@ -246,7 +246,7 @@ func (data *UseItemTransactionData) Marshal(r IO) {
r.Vec3(&data.Position)
r.Vec3(&data.ClickedPosition)
r.Varuint32(&data.BlockRuntimeID)
r.Uint8(&data.ClientPrediction)
r.Varuint32(&data.ClientPrediction)
}

// Marshal ...
Expand Down

0 comments on commit 324cf6e

Please sign in to comment.