summaryrefslogtreecommitdiff
path: root/melon.lua
diff options
context:
space:
mode:
Diffstat (limited to 'melon.lua')
-rw-r--r--melon.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/melon.lua b/melon.lua
index f92c9a1..696b108 100644
--- a/melon.lua
+++ b/melon.lua
@@ -40,7 +40,7 @@ minetest.register_node("crops:melon_seed", {
return
end
crops.plant(pointed_thing.above, {name="crops:melon_plant_1"})
- if not minetest.setting_getbool("creative_mode") then
+ if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end
return itemstack