From cab133771671bb9bb3b24767ca11a3f5d409f13f Mon Sep 17 00:00:00 2001
From: Ryan <ryanj00a@gmail.com>
Date: Sat, 17 Sep 2022 23:30:54 -0700
Subject: [PATCH] Add Giant to entity_raycast example

---
 examples/entity_raycast.rs | 7 +++++++
 src/entity.rs              | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

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<Self>) {
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<C: Config> Entity<C> {
             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),
         }