diff --git a/examples/entity_raycast.rs b/examples/entity_raycast.rs index 450baa1..97b9f1c 100644 --- a/examples/entity_raycast.rs +++ b/examples/entity_raycast.rs @@ -298,6 +298,13 @@ impl Config for Game { e.set_position([5.0, 103.0, -3.5]); e.set_yaw(270.0); e.set_head_yaw(90.0); + + // ==== Giant ==== // + let (_, e) = server.entities.insert(EntityKind::Giant, ()); + e.set_world(world_id); + e.set_position([20.0, 101.0, -5.0]); + e.set_yaw(270.0); + e.set_head_yaw(90.0); } fn update(&self, server: &mut Server) { diff --git a/src/entity.rs b/src/entity.rs index b3303f9..0a67924 100644 --- a/src/entity.rs +++ b/src/entity.rs @@ -781,7 +781,7 @@ impl Entity { TrackedData::FallingBlock(_) => with_object_data(1), // TODO: set block state ID. TrackedData::FishingBobber(e) => with_object_data(e.get_hook_entity_id()), TrackedData::Warden(e) => { - with_object_data((e.get_pose() == types::Pose::Emerging).into()) + with_object_data((e.get_pose() == Pose::Emerging).into()) } _ => with_object_data(0), }