1
0
Fork 0

Merge pull request 'Fix crash when using a named spawn egg' (#3674) from spawn_egg_name_crash into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3674
Reviewed-by: 𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 <mrrar@noreply.git.minetest.land>
skelly_horse_thunder
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 2023-05-01 17:29:08 +00:00
commit 0568c18081
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