Skip to content

Commit

Permalink
session/player.go: Use GameTypeSurvivalSpectator instead of GameTypeS…
Browse files Browse the repository at this point in the history
…pectator (#997)

Geyser has also done the same change, GeyserMC/Geyser@f3873c5. Anyone that wishes to keep the hidden UI can use a future implementation of the SetHud packet.
  • Loading branch information
AkmalFairuz authored Jan 23, 2025
1 parent bc489ea commit b33c061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/session/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ func gameTypeFromMode(mode world.GameMode) int32 {
return packet.GameTypeCreative
}
if !mode.Visible() && !mode.HasCollision() {
return packet.GameTypeSpectator
return packet.GameTypeSurvivalSpectator
}
return packet.GameTypeSurvival
}
Expand Down

0 comments on commit b33c061

Please sign in to comment.