0
0
Fork 0

Don't drop itemframe item in creative

This commit is contained in:
Wuzzy 2017-03-02 17:37:46 +01:00
parent d077fe733b
commit 6a109859bd
1 changed files with 1 additions and 1 deletions

View File

@ -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","")