forked from MineClone5/MineClone5
Don't drop itemframe item in creative
This commit is contained in:
parent
d077fe733b
commit
6a109859bd
|
@ -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","")
|
||||
|
|
Loading…
Reference in New Issue