From 6a109859bdb6dc021a6390716f5d2a668e2819b4 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 2 Mar 2017 17:37:46 +0100 Subject: [PATCH] Don't drop itemframe item in creative --- mods/ITEMS/itemframes/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/itemframes/init.lua b/mods/ITEMS/itemframes/init.lua index 217dd92e43..3d980c8808 100644 --- a/mods/ITEMS/itemframes/init.lua +++ b/mods/ITEMS/itemframes/init.lua @@ -78,7 +78,7 @@ end local drop_item = function(pos, node) local meta = minetest.get_meta(pos) if meta:get_string("item") ~= "" then - if node.name == "itemframes:frame" then + if node.name == "itemframes:frame" and not minetest.setting_getbool("creative_mode") then minetest.add_item(pos, meta:get_string("item")) end meta:set_string("item","")