aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--azalea-entity/src/data.rs2
-rw-r--r--azalea-protocol/src/packets/game/clientbound_set_entity_data_packet.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/azalea-entity/src/data.rs b/azalea-entity/src/data.rs
index 38ce671b..5d2a66fc 100644
--- a/azalea-entity/src/data.rs
+++ b/azalea-entity/src/data.rs
@@ -74,7 +74,7 @@ impl McBufReadable for EntityDataValue {
let data_type = i32::var_read_into(buf)?;
Ok(match data_type {
0 => EntityDataValue::Byte(u8::read_into(buf)?),
- 1 => EntityDataValue::Int(i32::read_into(buf)?),
+ 1 => EntityDataValue::Int(i32::var_read_into(buf)?),
2 => EntityDataValue::Float(f32::read_into(buf)?),
3 => EntityDataValue::String(String::read_into(buf)?),
4 => EntityDataValue::Component(Component::read_into(buf)?),
diff --git a/azalea-protocol/src/packets/game/clientbound_set_entity_data_packet.rs b/azalea-protocol/src/packets/game/clientbound_set_entity_data_packet.rs
index cc76ddf1..8cbd6f9b 100644
--- a/azalea-protocol/src/packets/game/clientbound_set_entity_data_packet.rs
+++ b/azalea-protocol/src/packets/game/clientbound_set_entity_data_packet.rs
@@ -5,6 +5,6 @@ use packet_macros::GamePacket;
#[derive(Clone, Debug, McBuf, GamePacket)]
pub struct ClientboundSetEntityDataPacket {
#[var]
- pub id: i32,
+ pub id: u32,
pub metadata: EntityMetadata,
}