summaryrefslogtreecommitdiff
path: root/tomato.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tomato.lua')
-rw-r--r--tomato.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tomato.lua b/tomato.lua
index 48b75b9..f70d914 100644
--- a/tomato.lua
+++ b/tomato.lua
@@ -36,7 +36,7 @@ minetest.register_node("crops:tomato_seed", {
return
end
crops.plant(pointed_thing.above, {name="crops:tomato_plant_1", param2 = 1})
- if not minetest.setting_getbool("creative_mode") then
+ if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end
return itemstack