Skip to content

Commit

Permalink
protocol/item_stack.go: Remove NumberOfCrafts field in CraftRecipeOpt…
Browse files Browse the repository at this point in the history
…ionalStackRequestAction (#269)
  • Loading branch information
ipad54 authored Oct 9, 2024
1 parent 22e91da commit 27724f7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions minecraft/protocol/item_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,17 +528,13 @@ type CraftRecipeOptionalStackRequestAction struct {
// one of the multi-recipes sent in the CraftingData packet, where each of the recipes have a RecipeNetworkID as
// of 1.16.
RecipeNetworkID uint32
// NumberOfCrafts is how many times the recipe was crafted. This field appears to be boilerplate and
// has no effect.
NumberOfCrafts byte
// FilterStringIndex is the index of a filter string sent in a ItemStackRequest.
FilterStringIndex int32
}

// Marshal ...
func (c *CraftRecipeOptionalStackRequestAction) Marshal(r IO) {
r.Varuint32(&c.RecipeNetworkID)
r.Uint8(&c.NumberOfCrafts)
r.Int32(&c.FilterStringIndex)
}

Expand Down

0 comments on commit 27724f7

Please sign in to comment.