From b8b985795783a7c4ec07508651962e53794caac2 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 6 Mar 2017 04:41:04 +0100 Subject: [PATCH] Fix item frames sometimes destroying placed items --- mods/ITEMS/itemframes/init.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mods/ITEMS/itemframes/init.lua b/mods/ITEMS/itemframes/init.lua index 0725184c..44744af2 100644 --- a/mods/ITEMS/itemframes/init.lua +++ b/mods/ITEMS/itemframes/init.lua @@ -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,