mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-03-14 10:02:32 +01:00
Also save the name when a shulker is placed
Previously only the description was saved in the node meta.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user