mojira.dev
MC-8559

Having cheats enabled shows always "Cheats: False" in the crash report

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

Attachments

Comments

migrated
[media][media][media]
kumasasa

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

migrated

Confirmed for 1.7.5 and 14w11b

marcono1234

Confirmed for

  • 15w51b

marcono1234

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.

migrated

Confirmed for 1.13.1.

migrated

The bug is in 20w07a

migrated

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

pulpetti

Confirmed in 1.16.1

pulpetti

Confirmed in 20w29a

ampolive

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

marcono1234

@@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?

ampolive

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

marcono1234

Resolving as Cannot Reproduce then.

kumasasa

(Unassigned)

Confirmed

Low

Crash, Debug, Text

Snapshot 13w04a, Snapshot 13w07a, Snapshot 13w09a, Snapshot 13w09c, Snapshot 13w10a, ..., 1.14.4, 19w38b, 20w07a, 1.16.1, 20w29a

Retrieved