1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

View File

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