summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--melon.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/melon.lua b/melon.lua
index 7b687aa..e0877db 100644
--- a/melon.lua
+++ b/melon.lua
@@ -35,7 +35,9 @@ minetest.register_node("crops:melon_seed", {
return
end
minetest.set_node(pointed_thing.above, {name="crops:melon_plant_1"})
- itemstack:take_item()
+ if not minetest.setting_getbool("creative_mode") then
+ itemstack:take_item()
+ end
return itemstack
end
})