mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 16:25:10 +00:00
Creative: Don't take item when placing into frame
This commit is contained in:
parent
669c955da6
commit
f8bab7e8f8
1 changed files with 4 additions and 2 deletions
|
@ -92,7 +92,6 @@ minetest.register_node("itemframes:frame",{
|
|||
is_ground_content = false,
|
||||
node_box = { type = "fixed", fixed = {-0.5, -0.5, 7/16, 0.5, 0.5, 0.5} },
|
||||
selection_box = { type = "fixed", fixed = {-0.5, -0.5, 7/16, 0.5, 0.5, 0.5} },
|
||||
inventory_image = "itemframes_frame.png",
|
||||
tiles = {"itemframe_background.png"},
|
||||
inventory_image = "itemframes_frame.png",
|
||||
wield_image = "itemframes_frame.png",
|
||||
|
@ -111,7 +110,10 @@ minetest.register_node("itemframes:frame",{
|
|||
local meta = minetest.get_meta(pos)
|
||||
if clicker:get_player_name() == meta:get_string("owner") then
|
||||
drop_item(pos,node)
|
||||
local s = itemstack:take_item()
|
||||
local s = itemstack
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
itemstack:take_item()
|
||||
end
|
||||
meta:set_string("item",s:to_string())
|
||||
update_item(pos,node)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue