Skip to content

Commit

Permalink
protocol/camera: Marshal new fields
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistedAsylumMC committed Oct 23, 2024
1 parent eed76a6 commit fcec2b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions minecraft/protocol/camera.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,13 @@ func (x *CameraPreset) Marshal(r IO) {
OptionalFunc(r, &x.RotY, r.Float32)
OptionalFunc(r, &x.RotationSpeed, r.Float32)
OptionalFunc(r, &x.SnapToTarget, r.Bool)
OptionalFunc(r, &x.HorizontalRotationLimit, r.Vec2)
OptionalFunc(r, &x.VerticalRotationLimit, r.Vec2)
OptionalFunc(r, &x.ContinueTargeting, r.Bool)
OptionalFunc(r, &x.ViewOffset, r.Vec2)
OptionalFunc(r, &x.EntityOffset, r.Vec3)
OptionalFunc(r, &x.Radius, r.Float32)
OptionalFunc(r, &x.AudioListener, r.Uint8)
OptionalFunc(r, &x.PlayerEffects, r.Bool)
OptionalFunc(r, &x.AlignTargetAndCameraForward, r.Bool)
}

0 comments on commit fcec2b1

Please sign in to comment.