Skip to content

Commit

Permalink
protocol/item_stack.go: Updated for v1.19.40.
Browse files Browse the repository at this point in the history
  • Loading branch information
JustTalDevelops committed Nov 22, 2022
1 parent 8895865 commit a6a4e3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions minecraft/protocol/item_stack.go
Expand Up @@ -438,12 +438,16 @@ type AutoCraftRecipeStackRequestAction struct {
RecipeNetworkID uint32
// TimesCrafted is how many times the recipe was crafted.
TimesCrafted byte
// Ingredients is a slice of ItemDescriptorCount that contains the ingredients that were used to craft the recipe.
// It is not exactly clear what this is used for, but it is sent by the vanilla client.
Ingredients []ItemDescriptorCount
}

// Marshal ...
func (a *AutoCraftRecipeStackRequestAction) Marshal(r IO) {
r.Varuint32(&a.RecipeNetworkID)
r.Uint8(&a.TimesCrafted)
FuncSlice(r, &a.Ingredients, r.ItemDescriptorCount)
}

// CraftCreativeStackRequestAction is sent by the client when it takes an item out fo the creative inventory.
Expand Down

0 comments on commit a6a4e3b

Please sign in to comment.