mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 02:51:06 +01:00
Don't drop itemframe item in creative
This commit is contained in:
parent
d077fe733b
commit
6a109859bd
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue