fix clientbound packets for 1.19.3
This commit is contained in:
@ -183,14 +183,12 @@ type Property struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p Property) WriteTo(w io.Writer) (n int64, err error) {
|
func (p Property) WriteTo(w io.Writer) (n int64, err error) {
|
||||||
hasSignature := len(p.Signature) > 0
|
|
||||||
return pk.Tuple{
|
return pk.Tuple{
|
||||||
pk.String(p.Name),
|
pk.String(p.Name),
|
||||||
pk.String(p.Value),
|
pk.String(p.Value),
|
||||||
pk.Boolean(hasSignature),
|
pk.Option[pk.String, *pk.String]{
|
||||||
pk.Opt{
|
Has: p.Signature != "",
|
||||||
Has: hasSignature,
|
Val: pk.String(p.Signature),
|
||||||
Field: pk.String(p.Signature),
|
|
||||||
},
|
},
|
||||||
}.WriteTo(w)
|
}.WriteTo(w)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user