File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
minecraft/protocol/packet Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 77// ChangeMobProperty is a packet sent from the server to the client to change one of the properties of a mob client-side.
88type 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
2828func (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 )
You can’t perform that action at this time.
0 commit comments