From 19d20e27142b6cf0c5630f4d68f71a9c197d519c Mon Sep 17 00:00:00 2001 From: TwistedAsylumMC Date: Wed, 14 Aug 2024 15:02:04 +0100 Subject: [PATCH] protocol/item_stack.go: StackResponseContainerInfo uses new FullContainerName --- minecraft/protocol/item_stack.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/minecraft/protocol/item_stack.go b/minecraft/protocol/item_stack.go index c09f031c..6dd8fbd5 100644 --- a/minecraft/protocol/item_stack.go +++ b/minecraft/protocol/item_stack.go @@ -233,17 +233,17 @@ func (x *ItemStackResponse) Marshal(r IO) { // StackResponseContainerInfo holds information on what slots in a container have what item stack in them. type StackResponseContainerInfo struct { - // ContainerID is the container ID of the container that the slots that follow are in. For the main - // inventory, this value seems to be 0x1b. For the cursor, this value seems to be 0x3a. For the crafting - // grid, this value seems to be 0x0d. - ContainerID byte + // Container is the FullContainerName that describes the container that the slots that follow are in. For + // the main inventory, the ContainerID seems to be 0x1b. Fur the cursor, this value seems to be 0x3a. For + // the crafting grid, this value seems to be 0x0d. + Container FullContainerName // SlotInfo holds information on what item stack should be present in specific slots in the container. SlotInfo []StackResponseSlotInfo } // Marshal encodes/decodes a StackResponseContainerInfo. func (x *StackResponseContainerInfo) Marshal(r IO) { - r.Uint8(&x.ContainerID) + Single(r, &x.Container) Slice(r, &x.SlotInfo) }