Fix sheep texture when wool regrows after feeding

This commit is contained in:
Wuzzy 2023-07-28 08:46:08 +02:00
parent 34af645448
commit e6fb914ced

View File

@ -126,6 +126,13 @@ mobs:register_mob(
-- Are we feeding? -- Are we feeding?
if mobs:feed_tame(self, clicker, 8, true) then if mobs:feed_tame(self, clicker, 8, true) then
-- Update wool status if gotten got false
if self.gotten == false then
self.object:set_properties({
textures = {"mobs_sheep.png"},
mesh = "mobs_sheep.x",
})
end
return return
end end