forked from mtcontrib/mobs_animal
fix missing horns on respawn/egg place
This commit is contained in:
parent
76c30c81c3
commit
808bbf82e9
|
@ -214,6 +214,15 @@ for _, col in ipairs(all_colours) do
|
||||||
return false
|
return false
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
-- fix any issue with horns by re-checking
|
||||||
|
on_spawn = function(self)
|
||||||
|
|
||||||
|
local textures = horn_texture_sel(self.attribute_horns, self.gotten)
|
||||||
|
|
||||||
|
self.object:set_properties({textures = {textures}})
|
||||||
|
self.base_texture = {textures}
|
||||||
|
end,
|
||||||
|
|
||||||
on_grown = function(self)
|
on_grown = function(self)
|
||||||
|
|
||||||
-- add the horns if we have horns when fully grown
|
-- add the horns if we have horns when fully grown
|
||||||
|
|
Loading…
Reference in New Issue
Block a user