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)