Fix crash

This commit is contained in:
ElCeejo 2022-09-15 12:20:19 -07:00 committed by GitHub
parent 2ca9681514
commit d1453b9501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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
})
})