Skip to content

Commit 1797346

Browse files
committed
minecraft/protocol/packet/change_mob_property.go: Fix EntityUniqueID
1 parent a8cb51c commit 1797346

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

minecraft/protocol/packet/change_mob_property.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
// ChangeMobProperty is a packet sent from the server to the client to change one of the properties of a mob client-side.
88
type ChangeMobProperty struct {
99
// EntityUniqueID is the unique ID of the entity whose property is being changed.
10-
EntityUniqueID uint64
10+
EntityUniqueID int64
1111
// Property is the name of the property being updated.
1212
Property string
1313
// BoolValue is set if the property value is a bool type. If the type is not a bool, this field is ignored.
@@ -26,7 +26,7 @@ func (*ChangeMobProperty) ID() uint32 {
2626
}
2727

2828
func (pk *ChangeMobProperty) Marshal(io protocol.IO) {
29-
io.Uint64(&pk.EntityUniqueID)
29+
io.Varint64(&pk.EntityUniqueID)
3030
io.String(&pk.Property)
3131
io.Bool(&pk.BoolValue)
3232
io.String(&pk.StringValue)

0 commit comments

Comments
 (0)