Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add IsEditorMode to client data (1.19.10) #140

Merged
merged 3 commits into from Jul 13, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions minecraft/protocol/login/data.go
Expand Up @@ -105,6 +105,8 @@ type ClientData struct {
// GUIScale is the GUI scale of the player. It is by default 0, and is otherwise -1 or -2 for a smaller
// GUI scale than usual.
GUIScale int `json:"GuiScale"`
// IsEditorMode is a value to dictate if the player is in editor mode.
IsEditorMode bool `json:"IsEditorMode"`
UnknownOre marked this conversation as resolved.
Show resolved Hide resolved
// LanguageCode is the language code of the player. It looks like 'en_UK'. It follows the ISO language
// codes, but hyphens ('-') are replaced with underscores. ('_')
LanguageCode string
Expand Down