Don't take sapling in creative mode
This commit is contained in:
parent
68782753ce
commit
c354424a7d
@ -48,7 +48,9 @@ function default.place_sapling(itemstack, placer, pointed_thing)
|
||||
|
||||
minetest.set_node(pointed_thing.above, {name = itemstack:get_name()})
|
||||
|
||||
if not minetest.settings:get_bool("creative_mode") then
|
||||
itemstack:take_item()
|
||||
end
|
||||
|
||||
return itemstack
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user