From 808bbf82e93a701c4f2e73954084305d9aba12a8 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 16 Mar 2024 07:28:44 +0000 Subject: [PATCH] fix missing horns on respawn/egg place --- sheep.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sheep.lua b/sheep.lua index b9331d2..e8797e9 100644 --- a/sheep.lua +++ b/sheep.lua @@ -214,6 +214,15 @@ for _, col in ipairs(all_colours) do return false 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) -- add the horns if we have horns when fully grown