mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-10 11:45:06 +00:00
Double save anvil-given name
This commit is contained in:
parent
a7190a3693
commit
87ef954409
1 changed files with 3 additions and 0 deletions
|
@ -41,7 +41,10 @@ local function update_anvil_slots(meta)
|
|||
local meta = name_item:get_meta()
|
||||
-- Limit name length
|
||||
new_name = string.sub(new_name, 1, 30)
|
||||
-- Rename item
|
||||
meta:set_string("description", new_name)
|
||||
-- Double-save the name internally, too
|
||||
meta:set_string("name", new_name)
|
||||
new_output = name_item
|
||||
else
|
||||
new_output = ""
|
||||
|
|
Loading…
Reference in a new issue