when switching to gamemode spectator, all chunks are unloading, but entities are still there (work in multiplayer, not tested in singleplayer) and when switching back to survival or creative, chunks do not reload and the player fall through to the void
Note : Gamerule spectatorGenerateChunks is TRUE so this is NOT a duplicate of MC-138053
Duplicate of MC-138053