Fix death animation

master
BlockMen 2015-11-08 17:16:07 +01:00
parent 8bfa30677e
commit acad33b245
2 changed files with 2 additions and 2 deletions

View File

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

View File

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