mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-12-01 03:43:03 +00: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 drop_item = function(pos, node)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
if meta:get_string("item") ~= "" then
|
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"))
|
minetest.add_item(pos, meta:get_string("item"))
|
||||||
end
|
end
|
||||||
meta:set_string("item","")
|
meta:set_string("item","")
|
||||||
|
|
Loading…
Reference in a new issue