1
0
Fork 0

Fix item frames sometimes destroying placed items

This commit is contained in:
Wuzzy 2017-03-06 04:41:04 +01:00
parent 91d04bb2c0
commit b8b9857957
1 changed files with 2 additions and 3 deletions

View File

@ -112,12 +112,11 @@ 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)
local s = itemstack
meta:set_string("item",itemstack:to_string())
update_item(pos,node)
if not minetest.setting_getbool("creative_mode") then
itemstack:take_item()
end
meta:set_string("item",s:to_string())
update_item(pos,node)
end
return itemstack
end,