Skip to content

Commit

Permalink
Revert "packet/start_game.go: ForceExperimentalGameplay isn't optional"
Browse files Browse the repository at this point in the history
This reverts commit 9603bd9.
  • Loading branch information
TwistedAsylumMC committed Sep 23, 2023
1 parent 9603bd9 commit dd7e450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minecraft/protocol/packet/start_game.go
Expand Up @@ -188,7 +188,7 @@ type StartGame struct {
EducationSharedResourceURI protocol.EducationSharedResourceURI
// ForceExperimentalGameplay specifies if experimental gameplay should be force enabled. For servers this
// should always be set to false.
ForceExperimentalGameplay bool
ForceExperimentalGameplay protocol.Optional[bool]
// LevelID is a base64 encoded world ID that is used to identify the world.
LevelID string
// WorldName is the name of the world that the player is joining. Note that this field shows up above the
Expand Down Expand Up @@ -306,7 +306,7 @@ func (pk *StartGame) Marshal(io protocol.IO) {
io.Int32(&pk.LimitedWorldDepth)
io.Bool(&pk.NewNether)
protocol.Single(io, &pk.EducationSharedResourceURI)
io.Bool(&pk.ForceExperimentalGameplay)
protocol.OptionalFunc(io, &pk.ForceExperimentalGameplay, io.Bool)
io.Uint8(&pk.ChatRestrictionLevel)
io.Bool(&pk.DisablePlayerInteractions)
io.String(&pk.LevelID)
Expand Down

0 comments on commit dd7e450

Please sign in to comment.