updates for 1.21.100 support
This commit is contained in:
@@ -22,6 +22,8 @@ type CameraAimAssist struct {
|
||||
TargetMode byte
|
||||
// Action is the action that should be performed with the aim assist. This is one of the constants above.
|
||||
Action byte
|
||||
// ShowDebugRender specifies if debug render should be shown.
|
||||
ShowDebugRender bool
|
||||
}
|
||||
|
||||
// ID ...
|
||||
@@ -37,4 +39,7 @@ func (pk *CameraAimAssist) Marshal(io protocol.IO) {
|
||||
io.Float32(&pk.Distance)
|
||||
io.Uint8(&pk.TargetMode)
|
||||
io.Uint8(&pk.Action)
|
||||
if proto.IsProtoGTE(io, proto.ID827) {
|
||||
io.Bool(&pk.ShowDebugRender)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user