Skip to content

Commit

Permalink
packet/set_player_game_type.go: Original type was correct
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistedAsylumMC committed Oct 23, 2024
1 parent fcec2b1 commit 69356c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minecraft/protocol/packet/set_player_game_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type SetPlayerGameType struct {
// GameType is the new game type of the player. It is one of the constants that can be found above. Some
// of these game types require additional flags to be set in an AdventureSettings packet for the game mode
// to obtain its full functionality.
GameType int64
GameType int32
}

// ID ...
Expand All @@ -29,5 +29,5 @@ func (*SetPlayerGameType) ID() uint32 {
}

func (pk *SetPlayerGameType) Marshal(io protocol.IO) {
io.Varint64(&pk.GameType)
io.Varint32(&pk.GameType)
}

0 comments on commit 69356c8

Please sign in to comment.