mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-28 07:13:00 +00:00
Fix possible item duplication with item frames
This commit is contained in:
parent
664499313e
commit
71f9250fcf
1 changed files with 3 additions and 1 deletions
|
@ -116,7 +116,9 @@ minetest.register_node("itemframes:frame",{
|
||||||
drop_item(pos, node, meta)
|
drop_item(pos, node, meta)
|
||||||
-- item holds the itemstring
|
-- item holds the itemstring
|
||||||
meta:set_string("item", itemstack:get_name())
|
meta:set_string("item", itemstack:get_name())
|
||||||
local itemdata = minetest.serialize(itemstack:to_table())
|
local put_itemstack = ItemStack(itemstack)
|
||||||
|
put_itemstack:set_count(1)
|
||||||
|
local itemdata = minetest.serialize(put_itemstack:to_table())
|
||||||
-- itemdata holds the serialized itemstack in table form
|
-- itemdata holds the serialized itemstack in table form
|
||||||
meta:set_string("itemdata", itemdata)
|
meta:set_string("itemdata", itemdata)
|
||||||
update_item(pos,node)
|
update_item(pos,node)
|
||||||
|
|
Loading…
Reference in a new issue