Fix item frame drop too many items after breaking

This commit is contained in:
Wuzzy 2017-03-14 22:46:24 +01:00
parent 6901781b49
commit 02a1eb82ad

@ -112,7 +112,7 @@ minetest.register_node("itemframes:frame",{
local meta = minetest.get_meta(pos)
if clicker:get_player_name() == meta:get_string("owner") then
drop_item(pos,node)
meta:set_string("item",itemstack:to_string())
meta:set_string("item", itemstack:get_name())
update_item(pos,node)
if not minetest.setting_getbool("creative_mode") then
itemstack:take_item()