The bug
Any survival or creative world created with cheats enabled shows "Cheats: False" in the crash report:
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Code analysis
Code analysis by @unknown can be found in this comment.
Related issues
discovered while testing
Attachments
Comments


Crash report of creative and survival attached, both worlds created with cheats enabled

Confirmed for 1.7.5 and 14w11b

Confirmed for
15w51b

Please link to this comment in the description
The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.
The reason for this is that the crash report is thrown client side. Therefor all information displayed is the one available to the client. The problem is that the packet SPacketJoinGame
does not contain information about whether or not commands are enabled (same should apply to mapFeaturesEnabled). This could probably be solved by having the server (and the client) create a crash report each.

Confirmed for 1.13.1.

The bug is in 20w07a

Cannot reproduce in 1.16-pre2. Triggered a debug crash but there's not anything related to the "Level game mode" in it.

Confirmed in 1.16.1

Confirmed in 20w29a

Cannot reproduce in 21w37a. The crash states Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
.

@@unknown, are you seeing this for a client or (integrated) server crash report (-client.txt
or -server.txt
)?
This issue appears to be about client crash reports only. However, in 21w37a the "-- Affected level --" section of a forced client crash report (triggered by holding F3
+ C
) does not seem to contain any information about game mode or cheats at all. Does a client crash report contain this information for you?

It is a server crash report. The client crash report indeed contains no information about the game mode.

Resolving as Cannot Reproduce then.