If you set yourself to Spectator Mode and press F3+N, you switch to the previous Game Mode you were in. But if you die in Spectator Mode, pressing F3+N will forget the previous Game Mode, making it impossible to switch with F3+N. It is possible to switch with F3+F4, but notably, Spectator Mode is the first that gets selected. Normally, the previous Game Mode gets selected.
Linked issues
duplicates 1
Attachments
Comments 3
While trying to recreate this today, I noticed it only happens in one specific world. It's not related to any datapacks, however. Not sure how to recreate this in a new world. Will probably remain unconfirmed.
Duplicate of MC-259571; I too can only reproduce it in one world, but not another. It appears to be caused by player NBT getting a wrong value, though no clue what causes it.
Cannot reproduce this. Please attach a video of this issue occurring with the F3 screen enabled.