From d1453b9501d87d5c114b7f627a5292a47ca05644 Mon Sep 17 00:00:00 2001 From: ElCeejo <40281901+ElCeejo@users.noreply.github.com> Date: Thu, 15 Sep 2022 12:20:19 -0700 Subject: [PATCH] Fix crash --- api/api.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/api.lua b/api/api.lua index 6a4c4ba..1667c36 100644 --- a/api/api.lua +++ b/api/api.lua @@ -448,8 +448,8 @@ function animalia.feed(self, clicker, breed, tame) local item, item_name = self:follow_wielded_item(clicker) if item_name then -- Eat Animation - local offset_h = self.head_data.pivot_h - local offset_v = self.head_data.pivot_v + local offset_h = self.head_data.pivot_h or 0.5 + local offset_v = self.head_data.pivot_v or 0.5 local head_pos = { x = pos.x + sin(yaw) * -offset_h, y = pos.y + offset_v, @@ -668,4 +668,4 @@ animalia.register_biome_group("common", { min_humidity = 20, max_humidity = 80, min_height = 1 -}) \ No newline at end of file +})