From 50f92e9ddb79449d81668fa79d0b7a7a9da3f9b4 Mon Sep 17 00:00:00 2001 From: Ali <47182802+UnknownOre@users.noreply.github.com> Date: Wed, 13 Jul 2022 13:46:14 +0300 Subject: [PATCH] login/data.go: Added IsEditorMode to client data (1.19.10) (#140) --- minecraft/protocol/login/data.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/minecraft/protocol/login/data.go b/minecraft/protocol/login/data.go index dd7c59fe..aa51d9b4 100644 --- a/minecraft/protocol/login/data.go +++ b/minecraft/protocol/login/data.go @@ -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 // 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