mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-03-15 04:11:25 +00:00
Fix crash
This commit is contained in:
parent
2ca9681514
commit
d1453b9501
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue