Fix death animation
This commit is contained in:
parent
8bfa30677e
commit
acad33b245
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user