From b47636222be5336cdbbf32764affe5828423aa70 Mon Sep 17 00:00:00 2001 From: TwistedAsylumMC Date: Fri, 8 Dec 2023 23:48:36 +0000 Subject: [PATCH] packet/set_player_inventory_options.go: Fix documentation for packet --- .../protocol/packet/set_player_inventory_options.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/minecraft/protocol/packet/set_player_inventory_options.go b/minecraft/protocol/packet/set_player_inventory_options.go index 1bf50536..2c2f0c51 100644 --- a/minecraft/protocol/packet/set_player_inventory_options.go +++ b/minecraft/protocol/packet/set_player_inventory_options.go @@ -28,19 +28,19 @@ const ( InventoryRightTabArmour ) -// SetPlayerInventoryOptions is sent by the client when it tries to toggle the state of a slot within a Crafter. +// SetPlayerInventoryOptions is a bidirectional packet that can be used to update the inventory options of a player. type SetPlayerInventoryOptions struct { // LeftInventoryTab is the tab that is selected on the left side of the inventory. This is usually for the creative - // inventory. It is one of the constants above. + // inventory. It is one of the InventoryLeftTab constants above. LeftInventoryTab byte // RightInventoryTab is the tab that is selected on the right side of the inventory. This is usually for the player's - // own inventory. It is one of the constants above. + // own inventory. It is one of the InventoryRightTab constants above. RightInventoryTab byte // Filtering is whether the player has enabled the filtering between recipes they have unlocked or not. Filtering bool - // InventoryLayout is the layout of the inventory. It is one of the constants above. + // InventoryLayout is the layout of the inventory. It is one of the InventoryLayout constants above. InventoryLayout byte - // CraftingLayout is the layout of the crafting inventory. It is one of the constants above. + // CraftingLayout is the layout of the crafting inventory. It is one of the InventoryLayout constants above. CraftingLayout byte }