Changing Location of Gamemode resets gamemode innapropriately

This issue had me confused for a while until I nailed down the cause of it. I’m going through an example from a book which at one point has me organize the project by putting the things created so far into some folders. This of course included the custom game mode.

However when I hit play, it no longer used the game mode specified in project settings - instead it used the default mode which spawns the player as a floating spectate camera. The reason was because the game mode had moved from the content folder to a sub folder. I did some testing and found moving the game mode anywhere, or re-naming the folder it is in causes this issue.

Whats confusing (and what took me a while to trouble shoot) is that in project settings> maps and modes, it still shows my game mode as being selected and “in use”. I feel this is a bug.

Either the project settings should change the game mode selected to default or point at the new location of the game mode when you move things around or rename folders. It really shouldn’t show the custom game mode if it is no longer using it.

I’d personally expected the references to game mode in settings to be updated to the new location however, as I’d done the move/rename from within the editor. If I were to say, move a source file in a project within an IntelliJ IDE it would ask me if I wanted to refactor references to it to the new location for example.