Fix tamed ocelot textures not being set correctly

This commit is contained in:
b3nderman 2023-01-14 19:32:32 -07:00 committed by Gitea
parent 93c9fdfaae
commit a7fac7c550

View file

@ -164,7 +164,7 @@ cat.on_spawn = function(self)
if not self._texture then if not self._texture then
self._texture = cat.textures[math.random(#cat.textures)] self._texture = cat.textures[math.random(#cat.textures)]
end end
self.object:set_properties({textures = {self._texture}}) self.object:set_properties({textures = self._texture})
end end
mcl_mobs.register_mob("mobs_mc:cat", cat) mcl_mobs.register_mob("mobs_mc:cat", cat)