From 37c05cb84029dbe728d9fd2c635db07d7e569dac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20=C3=85str=C3=B6m?= Date: Sun, 26 Jul 2020 18:00:31 +0200 Subject: [PATCH] Also save the name when a shulker is placed Previously only the description was saved in the node meta. --- mods/ITEMS/mcl_chests/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/ITEMS/mcl_chests/init.lua b/mods/ITEMS/mcl_chests/init.lua index d256f658..a200d3d3 100644 --- a/mods/ITEMS/mcl_chests/init.lua +++ b/mods/ITEMS/mcl_chests/init.lua @@ -839,6 +839,7 @@ for color, desc in pairs(boxtypes) do local imeta = stack:get_meta() local nmeta = minetest.get_meta(droppos) nmeta:set_string("description", imeta:get_string("description")) + nmeta:set_string("name", imeta:get_string("name")) stack:take_item() end @@ -854,6 +855,7 @@ for color, desc in pairs(boxtypes) do local imeta = itemstack:get_meta() nmeta:set_string("description", imeta:get_string("description")) + nmeta:set_string("name", imeta:get_string("name")) if minetest.is_creative_enabled(placer:get_player_name()) then if not ninv:is_empty("main") then