diff options
-rw-r--r-- | src/protocol.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol.rs b/src/protocol.rs index 1e89987..1053525 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -47,7 +47,7 @@ pub struct Id { impl Serialize for Id { fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult { - to.serialize_other(&self.id) + to.serialize_other(&crate::types::VarInt(self.id)) } } |