Set llama chest texture when equipping chest

This commit is contained in:
cora 2022-09-28 15:36:57 +02:00 committed by Gitea
parent 673f970fb3
commit ae71b19ede

View File

@ -130,6 +130,8 @@ mcl_mobs:register_mob("mobs_mc:llama", {
item:take_item() item:take_item()
clicker:set_wielded_item(item) clicker:set_wielded_item(item)
self._has_chest = true self._has_chest = true
self.textures[1] = "mcl_chests_normal.png"
self.object:set_properties({textures = self.textures})
else else
-- Feed with anything else -- Feed with anything else
if mcl_mobs:feed_tame(self, clicker, 1, false, true) then return end if mcl_mobs:feed_tame(self, clicker, 1, false, true) then return end