Skip to content

Commit

Permalink
Merge branch 'Sandertv:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
didntpot authored Nov 27, 2024
2 parents 5fbbfa2 + 268adeb commit c7ff19d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion minecraft/protocol/packet/player_armour_damage.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

const (
PlayerArmourDamageFlagHelmet = 1 << (iota + 1)
PlayerArmourDamageFlagHelmet = 1 << iota
PlayerArmourDamageFlagChestplate
PlayerArmourDamageFlagLeggings
PlayerArmourDamageFlagBoots
Expand Down

0 comments on commit c7ff19d

Please sign in to comment.