From 681d74ebb92f8b8995bcd7a5ad5942c9bc2f89d9 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Tue, 23 Jul 2024 14:55:24 +0200 Subject: [PATCH] protocol/entity_properties.go: Fix entity property unmarshalling (#244) --- minecraft/protocol/entity_properties.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/minecraft/protocol/entity_properties.go b/minecraft/protocol/entity_properties.go index 2653eaff..52b7e599 100644 --- a/minecraft/protocol/entity_properties.go +++ b/minecraft/protocol/entity_properties.go @@ -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) } @@ -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) } @@ -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) }