Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit 026ee37

Browse files
committed
Merge remote-tracking branch 'upstream/master'
pull sebs changes
2 parents acd00bb + 091a13c commit 026ee37

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

minecraft/protocol/camera.go

+4
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ type CameraInstructionSet struct {
7272
Rotation Optional[mgl32.Vec2]
7373
// Facing is a vector that the camera will always face towards during the duration of the instruction.
7474
Facing Optional[mgl32.Vec3]
75+
// ViewOffset is an offset based on a pivot point to the player, causing the camera to be shifted in a
76+
// certain direction.
77+
ViewOffset Optional[mgl32.Vec2]
7578
// Default determines whether the camera is a default camera or not.
7679
Default Optional[bool]
7780
}
@@ -83,6 +86,7 @@ func (x *CameraInstructionSet) Marshal(r IO) {
8386
OptionalFunc(r, &x.Position, r.Vec3)
8487
OptionalFunc(r, &x.Rotation, r.Vec2)
8588
OptionalFunc(r, &x.Facing, r.Vec3)
89+
OptionalFunc(r, &x.ViewOffset, r.Vec2)
8690
OptionalFunc(r, &x.Default, r.Bool)
8791
}
8892

minecraft/protocol/packet/level_sound_event.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,12 @@ const (
491491
SoundEventDecoratedPotInsert
492492
SoundEventDecoratedPotInsertFail
493493
SoundEventCrafterDisableSlot
494+
_
495+
_
496+
_
497+
_
498+
_
499+
_
494500
SoundEventCopperBulbTurnOn
495501
SoundEventCopperBulbTurnOff
496502
SoundEventAmbientInAir
@@ -524,12 +530,6 @@ const (
524530
SoundEventMaceHeavySmashGround
525531
SoundEventOminousItemSpawnerSpawnItemBegin
526532
_
527-
_
528-
_
529-
_
530-
_
531-
_
532-
_
533533
SoundEventApplyEffectBadOmen
534534
SoundEventApplyEffectRaidOmen
535535
SoundEventApplyEffectTrialOmen

minecraft/protocol/packet/server_bound_diagnostics.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import (
55
)
66

77
// ServerBoundDiagnostics is sent by the client to tell the server about the performance diagnostics
8-
// of the client. It is sent by the client roughly every 500ms or 10 in-game ticks.
8+
// of the client. It is sent by the client roughly every 500ms or 10 in-game ticks when the
9+
// "Creator > Enable Client Diagnostics" setting is enabled.
910
type ServerBoundDiagnostics struct {
1011
// AverageFramesPerSecond is the average amount of frames per second that the client has been
1112
// running at.

0 commit comments

Comments
 (0)