From acad33b245d8cae3dd10613be3ad3459da958018 Mon Sep 17 00:00:00 2001 From: BlockMen Date: Sun, 8 Nov 2015 17:16:07 +0100 Subject: [PATCH] Fix death animation --- creatures/functions.lua | 2 +- creatures/register.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/creatures/functions.lua b/creatures/functions.lua index b73363a..8673891 100644 --- a/creatures/functions.lua +++ b/creatures/functions.lua @@ -129,7 +129,7 @@ local function killMob(me, def) if def.model.animations.death then local dur = def.model.animations.death.duration or 0.5 - update_animation(me, "death", def.model.animations) + update_animation(me, "death", def.model.animations["death"]) core.after(dur, function() me:remove() end) diff --git a/creatures/register.lua b/creatures/register.lua index bc24eeb..960659c 100644 --- a/creatures/register.lua +++ b/creatures/register.lua @@ -425,7 +425,7 @@ function creatures.register_egg(egg_def) core.register_craftitem(":" .. egg_def.mob_name .. "_spawn_egg", { description = egg_def.description or egg_def.mob_name .. " spawn egg", - inventory_image = egg_def.texture, + inventory_image = egg_def.texture or "creatures_spawn_egg.png", liquids_pointable = false, on_place = function(itemstack, placer, pointed_thing) eggSpawn(itemstack, placer, pointed_thing, egg_def)