Skip to content

Commit

Permalink
packet/player_auth_input.go: Fix marshal order (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
smell-of-curry authored Aug 4, 2024
1 parent e66c642 commit d96a940
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions minecraft/protocol/packet/player_auth_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,15 @@ func (pk *PlayerAuthInput) Marshal(io protocol.IO) {
if pk.InputData&InputFlagPerformItemStackRequest != 0 {
protocol.Single(io, &pk.ItemStackRequest)
}


if pk.InputData&InputFlagPerformBlockActions != 0 {
protocol.SliceVarint32Length(io, &pk.BlockActions)
}

if pk.InputData&InputFlagClientPredictedVehicle != 0 {
io.Vec2(&pk.VehicleRotation)
io.Varint64(&pk.ClientPredictedVehicle)
}

if pk.InputData&InputFlagPerformBlockActions != 0 {
protocol.SliceVarint32Length(io, &pk.BlockActions)
}

io.Vec2(&pk.AnalogueMoveVector)
}

0 comments on commit d96a940

Please sign in to comment.