Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
JustTalDevelops committed Mar 9, 2022
2 parents 2a44b7f + 5667bbd commit 9a828f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions minecraft/protocol/item_stack.go
Expand Up @@ -470,8 +470,8 @@ func (a *BeaconPaymentStackRequestAction) Unmarshal(r *Reader) {

// MineBlockStackRequestAction is sent by the client when it breaks a block.
type MineBlockStackRequestAction struct {
// Unknown1 ... TODO: Find out what this is for
Unknown1 int32
// HotbarSlot is the slot held by the player while mining a block.
HotbarSlot int32
// PredictedDurability is the durability of the item that the client assumes to be present at the time.
PredictedDurability int32
// StackNetworkID is the unique stack ID that the client assumes to be present at the time. The server
Expand All @@ -482,14 +482,14 @@ type MineBlockStackRequestAction struct {

// Marshal ...
func (a *MineBlockStackRequestAction) Marshal(w *Writer) {
w.Varint32(&a.Unknown1)
w.Varint32(&a.HotbarSlot)
w.Varint32(&a.PredictedDurability)
w.Varint32(&a.StackNetworkID)
}

// Unmarshal ...
func (a *MineBlockStackRequestAction) Unmarshal(r *Reader) {
r.Varint32(&a.Unknown1)
r.Varint32(&a.HotbarSlot)
r.Varint32(&a.PredictedDurability)
r.Varint32(&a.StackNetworkID)
}
Expand Down

0 comments on commit 9a828f7

Please sign in to comment.