Skip to content

Commit b33c061

Browse files
authored
session/player.go: Use GameTypeSurvivalSpectator instead of GameTypeSpectator (#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.
1 parent bc489ea commit b33c061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/session/player.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ func gameTypeFromMode(mode world.GameMode) int32 {
901901
return packet.GameTypeCreative
902902
}
903903
if !mode.Visible() && !mode.HasCollision() {
904-
return packet.GameTypeSpectator
904+
return packet.GameTypeSurvivalSpectator
905905
}
906906
return packet.GameTypeSurvival
907907
}

0 commit comments

Comments
 (0)