You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get the Vec from ClientboundSetEntityDataPacket.packed_items that the server sends me when I update an item and rotate that item in the frame (data in this packet). I am trying to use TryFrom for this:
But I get the error Index 8 is too big.
I have studied the TryFrom code and came to the conclusion that this check is not needed here or is written incorrectly:
if item.indexasusize > len {returnErr(format!("Index {} is too big", item.index));}
Updates one or more metadata properties for an existing entity. Any properties not included in the Metadata field are left unchanged
From this we can conclude that not all fields are always sent and their number does not necessarily equal the maximum index in the packet.
Can you fix this or explain how to properly parse such packets?
I'm trying to get the Vec from ClientboundSetEntityDataPacket.packed_items that the server sends me when I update an item and rotate that item in the frame (data in this packet). I am trying to use TryFrom for this:
But I get the error
Index 8 is too big
.I have studied the TryFrom code and came to the conclusion that this check is not needed here or is written incorrectly:
In the protocol it says
From this we can conclude that not all fields are always sent and their number does not necessarily equal the maximum index in the packet.
Can you fix this or explain how to properly parse such packets?
The packet I received
The text was updated successfully, but these errors were encountered: