From 87ef95440926639eda18c65d14269a6d2b33297d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 2 Feb 2018 04:19:40 +0100 Subject: [PATCH] Double save anvil-given name --- mods/ITEMS/mcl_anvils/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/ITEMS/mcl_anvils/init.lua b/mods/ITEMS/mcl_anvils/init.lua index 245a3cd5aa..3b307f96e5 100644 --- a/mods/ITEMS/mcl_anvils/init.lua +++ b/mods/ITEMS/mcl_anvils/init.lua @@ -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 = ""