1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2024-09-19 11:10:31 +02:00

fix nametag bug when colouring sheep

This commit is contained in:
tenplus1 2024-07-22 14:57:55 +01:00
parent 823a1dc0b2
commit 3260afbad4

View File

@ -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