Skip to content

Commit

Permalink
protocol/entity_properties.go: Fix entity property unmarshalling (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
olebeck authored Jul 23, 2024
1 parent 7483781 commit 681d74e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions minecraft/protocol/entity_properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type EntityProperties struct {
}

// Marshal ...
func (e EntityProperties) Marshal(r IO) {
func (e *EntityProperties) Marshal(r IO) {
Slice(r, &e.IntegerProperties)
Slice(r, &e.FloatProperties)
}
Expand All @@ -24,7 +24,7 @@ type IntegerEntityProperty struct {
}

// Marshal ...
func (i IntegerEntityProperty) Marshal(r IO) {
func (i *IntegerEntityProperty) Marshal(r IO) {
r.Varuint32(&i.Index)
r.Varint32(&i.Value)
}
Expand All @@ -38,7 +38,7 @@ type FloatEntityProperty struct {
}

// Marshal ...
func (f FloatEntityProperty) Marshal(r IO) {
func (f *FloatEntityProperty) Marshal(r IO) {
r.Varuint32(&f.Index)
r.Float32(&f.Value)
}

0 comments on commit 681d74e

Please sign in to comment.