From 3260afbad40567159144c57f7e76ad9a29882655 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Mon, 22 Jul 2024 14:57:55 +0100 Subject: [PATCH] fix nametag bug when colouring sheep --- sheep.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sheep.lua b/sheep.lua index 7ca9396..6e165cc 100644 --- a/sheep.lua +++ b/sheep.lua @@ -339,9 +339,11 @@ for _, col in ipairs(all_colours) do if ent then + local prop = self.object:get_properties() + -- add old sheep attributes ent.attribute_horns = self.attribute_horns - ent.nametag = self.nametag + ent._nametag = prop.nametag ent.owner = name ent.tamed = true ent.protected = self.protected @@ -354,8 +356,7 @@ for _, col in ipairs(all_colours) do ent.base_texture = {textures} ent.object:set_properties({ - textures = {textures}, - nametag = self.nametag + textures = {textures} }) -- remove old sheep