Skip to content

Commit

Permalink
protocol/item_stack.go: Add missing field for CraftLoomRecipeStackReq…
Browse files Browse the repository at this point in the history
…uestAction (#270)
  • Loading branch information
DaPigGuy authored Nov 16, 2024
1 parent 737a07a commit af27942
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions minecraft/protocol/item_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,11 +564,14 @@ func (c *CraftGrindstoneRecipeStackRequestAction) Marshal(r IO) {
type CraftLoomRecipeStackRequestAction struct {
// Pattern is the pattern identifier for the loom recipe.
Pattern string
// TimesCrafted is how many times the recipe was crafted.
TimesCrafted byte
}

// Marshal ...
func (c *CraftLoomRecipeStackRequestAction) Marshal(r IO) {
r.String(&c.Pattern)
r.Uint8(&c.TimesCrafted)
}

// CraftNonImplementedStackRequestAction is an action sent for inventory actions that aren't yet implemented
Expand Down

0 comments on commit af27942

Please sign in to comment.