Skip to content

Commit aaa40af

Browse files
committed
protocol: Fix PresenceInfo wire format
1 parent 9a804e9 commit aaa40af

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

minecraft/protocol/server_join_information.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,14 @@ func (x *StoreEntryPointInfo) Marshal(r IO) {
5050

5151
// PresenceInfo contains presence information about the experience.
5252
type PresenceInfo struct {
53-
// ExperienceName is the optional name of the experience.
54-
ExperienceName Optional[string]
55-
// WorldName is the optional name of the world.
56-
WorldName Optional[string]
5753
// RichPresenceID is the rich presence ID overriding the client-driven
5854
// rich presence.
59-
RichPresenceID string
55+
RichPresenceID Optional[string]
6056
}
6157

6258
// Marshal encodes/decodes a PresenceInfo.
6359
func (x *PresenceInfo) Marshal(r IO) {
64-
OptionalFunc(r, &x.ExperienceName, r.String)
65-
OptionalFunc(r, &x.WorldName, r.String)
66-
r.String(&x.RichPresenceID)
60+
OptionalFunc(r, &x.RichPresenceID, r.String)
6761
}
6862

6963
// ServerJoinInformation contains optional information about the server the player is joining.

0 commit comments

Comments
 (0)