From 06219ce9b4a9e09904f7757d53e747a9bc2d7559 Mon Sep 17 00:00:00 2001 From: Ali <47182802+UnknownOre@users.noreply.github.com> Date: Wed, 13 Jul 2022 13:40:32 +0300 Subject: [PATCH 1/3] add IsEditorMode to client data (1.19.10) --- 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..ae865b26 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 `json:"IsEditorMode"` // 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 From 61172f334c5603668ad4735369d7e7d2252355b2 Mon Sep 17 00:00:00 2001 From: Ali <47182802+UnknownOre@users.noreply.github.com> Date: Wed, 13 Jul 2022 13:43:43 +0300 Subject: [PATCH 2/3] dot --- minecraft/protocol/login/data.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minecraft/protocol/login/data.go b/minecraft/protocol/login/data.go index ae865b26..a69c6793 100644 --- a/minecraft/protocol/login/data.go +++ b/minecraft/protocol/login/data.go @@ -105,7 +105,7 @@ 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 is a value to dictate if the player is in editor mode. IsEditorMode bool `json:"IsEditorMode"` // 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. ('_') From e75f09ef6a1d59490264ace88a26b15b061e5b6a Mon Sep 17 00:00:00 2001 From: Ali <47182802+UnknownOre@users.noreply.github.com> Date: Wed, 13 Jul 2022 13:45:21 +0300 Subject: [PATCH 3/3] remove json tag --- minecraft/protocol/login/data.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minecraft/protocol/login/data.go b/minecraft/protocol/login/data.go index a69c6793..aa51d9b4 100644 --- a/minecraft/protocol/login/data.go +++ b/minecraft/protocol/login/data.go @@ -106,7 +106,7 @@ type ClientData struct { // 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"` + 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