mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-28 20:27:30 +01:00
Fix crash when using a named spawn egg
This commit is contained in:
parent
2c01240a56
commit
13df9ec46c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user