Fix crash when using a named spawn egg

This commit is contained in:
cora 2023-04-27 14:43:33 -06:00 committed by PrairieWind
parent 2c01240a56
commit 13df9ec46c
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ function mcl_mobs.register_egg(mob, desc, background_color, overlay_color, addeg
nametag = string.sub(nametag, 1, MAX_MOB_NAME_LENGTH)
end
ent.nametag = nametag
update_tag(ent)
ent:update_tag()
end
-- if not in creative then take item